1
0
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:
montlikadani 2020-04-03 20:57:58 +02:00
parent d081da693d
commit 58b045f5e3

View File

@ -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 {