mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix enchantments for servers that don't namespace them (Fixes #897)
This commit is contained in:
parent
5ceb4145ac
commit
e7657c7d07
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ public enum Enchantment {
|
|||
|
||||
public static Enchantment getByJavaIdentifier(String javaIdentifier) {
|
||||
for (Enchantment enchantment : Enchantment.values()) {
|
||||
if (enchantment.javaIdentifier.equals(javaIdentifier)) {
|
||||
if (enchantment.javaIdentifier.equals(javaIdentifier) || enchantment.name().toLowerCase(Locale.ENGLISH).equalsIgnoreCase(javaIdentifier)) {
|
||||
return enchantment;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue