mirror of
https://github.com/filoghost/ChestCommands.git
synced 2025-02-17 03:51:29 +01:00
Fix enchantments.
This commit is contained in:
parent
c157724fc6
commit
4b67d888b4
@ -40,7 +40,7 @@ public class EnchantmentSerializer {
|
|||||||
for (Enchantment enchant : Enchantment.values()) {
|
for (Enchantment enchant : Enchantment.values()) {
|
||||||
if (enchant != null) {
|
if (enchant != null) {
|
||||||
// Accepts the ugly default names too.
|
// Accepts the ugly default names too.
|
||||||
enchantmentsMap.put(formatLowercase(enchant.toString()), enchant);
|
enchantmentsMap.put(formatLowercase(enchant.getName()), enchant);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ public class EnchantmentSerializer {
|
|||||||
singleEnchant = levelSplit[0];
|
singleEnchant = levelSplit[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
Enchantment ench = matchEnchantment(input);
|
Enchantment ench = matchEnchantment(singleEnchant);
|
||||||
|
|
||||||
if (ench == null) {
|
if (ench == null) {
|
||||||
errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has an invalid enchantment: " + singleEnchant);
|
errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has an invalid enchantment: " + singleEnchant);
|
||||||
@ -91,8 +91,4 @@ public class EnchantmentSerializer {
|
|||||||
return enchantmentsMap.get(formatLowercase(input));
|
return enchantmentsMap.get(formatLowercase(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String saveToString() {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user