mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
Properly detect enchantments with improper names (#3900)
This commit is contained in:
parent
eae8bc05c9
commit
817585a9a6
@ -285,6 +285,12 @@ public final class Enchantments {
|
|||||||
if (enchantment == null) {
|
if (enchantment == null) {
|
||||||
enchantment = Enchantment.getByName(name.toUpperCase());
|
enchantment = Enchantment.getByName(name.toUpperCase());
|
||||||
}
|
}
|
||||||
|
if (enchantment == null) {
|
||||||
|
enchantment = Enchantment.getByName(name.toLowerCase());
|
||||||
|
}
|
||||||
|
if (enchantment == null) {
|
||||||
|
enchantment = Enchantment.getByName(name);
|
||||||
|
}
|
||||||
if (enchantment == null) {
|
if (enchantment == null) {
|
||||||
enchantment = ENCHANTMENTS.get(name.toLowerCase(Locale.ENGLISH));
|
enchantment = ENCHANTMENTS.get(name.toLowerCase(Locale.ENGLISH));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user