Fix all items being enchanted

This commit is contained in:
libraryaddict 2018-07-23 18:46:14 +12:00
parent b69ca946a7
commit 992385c2d9

View File

@ -1019,7 +1019,10 @@ public class DisguiseParser {
}
ItemStack itemStack = new ItemStack(itemId, amount, itemDura);
itemStack.addUnsafeEnchantment(Enchantment.DURABILITY, 1);
if (enchanted) {
itemStack.addUnsafeEnchantment(Enchantment.DURABILITY, 1);
}
return itemStack;
} else {