Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-12 19:10:19 +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) {
|
||||
for (Enchantment enchantment : Enchantment.values()) {
|
||||
if (enchantment.javaIdentifier.equals(javaIdentifier)) {
|
||||
if (enchantment.javaIdentifier.equals(javaIdentifier) || enchantment.name().toLowerCase(Locale.ENGLISH).equalsIgnoreCase(javaIdentifier)) {
|
||||
return enchantment;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren