Useless code.

This commit is contained in:
filoghost 2014-11-01 15:58:30 +01:00
parent fd403803ca
commit c157724fc6

View File

@ -71,10 +71,7 @@ public class EnchantmentSerializer {
singleEnchant = levelSplit[0];
}
Enchantment ench = Enchantment.getByName(singleEnchant.trim().toUpperCase().replace(" ", "_"));
if (ench == null) {
ench = matchEnchantment(input);
}
Enchantment ench = matchEnchantment(input);
if (ench == null) {
errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has an invalid enchantment: " + singleEnchant);