mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-26 20:16:16 +01:00
Useless code.
This commit is contained in:
parent
fd403803ca
commit
c157724fc6
@ -71,10 +71,7 @@ public class EnchantmentSerializer {
|
|||||||
singleEnchant = levelSplit[0];
|
singleEnchant = levelSplit[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
Enchantment ench = Enchantment.getByName(singleEnchant.trim().toUpperCase().replace(" ", "_"));
|
Enchantment ench = matchEnchantment(input);
|
||||||
if (ench == null) {
|
|
||||||
ench = matchEnchantment(input);
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user