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]; 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);