mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-21 14:51:19 +01:00
Fix another initializer error when the #getName method is not exists in some softwares
This commit is contained in:
parent
d081da693d
commit
58b045f5e3
@ -63,9 +63,12 @@ public enum CMIEnchantment {
|
||||
String temp = this.toString().toLowerCase().replace("_", "");
|
||||
|
||||
for (Enchantment one : Enchantment.values()) {
|
||||
if (one.getName().toLowerCase().replace("_", "").equalsIgnoreCase(temp)) {
|
||||
enchantment = one;
|
||||
break;
|
||||
try {
|
||||
if (one.getName().toLowerCase().replace("_", "").equalsIgnoreCase(temp)) {
|
||||
enchantment = one;
|
||||
break;
|
||||
}
|
||||
} catch (Exception | Error e) {
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user