mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-22 23:31:20 +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("_", "");
|
String temp = this.toString().toLowerCase().replace("_", "");
|
||||||
|
|
||||||
for (Enchantment one : Enchantment.values()) {
|
for (Enchantment one : Enchantment.values()) {
|
||||||
if (one.getName().toLowerCase().replace("_", "").equalsIgnoreCase(temp)) {
|
try {
|
||||||
enchantment = one;
|
if (one.getName().toLowerCase().replace("_", "").equalsIgnoreCase(temp)) {
|
||||||
break;
|
enchantment = one;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} catch (Exception | Error e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user