From 992385c2d9955d00cc3d48c694d1e2e985c8c889 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 23 Jul 2018 18:46:14 +1200 Subject: [PATCH] Fix all items being enchanted --- src/me/libraryaddict/disguise/utilities/DisguiseParser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseParser.java b/src/me/libraryaddict/disguise/utilities/DisguiseParser.java index 1ea3bf31..d62039a8 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseParser.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseParser.java @@ -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 {