mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-23 02:25:26 +01:00
Useless code.
This commit is contained in:
parent
fd403803ca
commit
c157724fc6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user