Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 00:00:41 +01:00
Fix enchantments for servers that don't namespace them (Fixes #897)
Dieser Commit ist enthalten in:
Ursprung
5ceb4145ac
Commit
e7657c7d07
@ -76,7 +76,7 @@ public enum Enchantment {
|
|||||||
|
|
||||||
public static Enchantment getByJavaIdentifier(String javaIdentifier) {
|
public static Enchantment getByJavaIdentifier(String javaIdentifier) {
|
||||||
for (Enchantment enchantment : Enchantment.values()) {
|
for (Enchantment enchantment : Enchantment.values()) {
|
||||||
if (enchantment.javaIdentifier.equals(javaIdentifier)) {
|
if (enchantment.javaIdentifier.equals(javaIdentifier) || enchantment.name().toLowerCase(Locale.ENGLISH).equalsIgnoreCase(javaIdentifier)) {
|
||||||
return enchantment;
|
return enchantment;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren