From 3f7296e30202786e6a6a2b4b1960e82ee435e3dc Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Thu, 25 Jul 2024 01:18:52 +1000 Subject: Fix neurename not being able to change armour into other armour (#1247) --- .../miscgui/itemcustomization/ItemCustomizeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/itemcustomization/ItemCustomizeManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/itemcustomization/ItemCustomizeManager.java index 1e741ae8..9466b280 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/itemcustomization/ItemCustomizeManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/itemcustomization/ItemCustomizeManager.java @@ -409,7 +409,7 @@ public class ItemCustomizeManager { newStack.getTagCompound().setTag("SkullOwner", customSkull); } } - if (armorSlot != 4 && newStack.getItem() instanceof ItemArmor) + if (armorSlot != 4 && !(newStack.getItem() instanceof ItemArmor)) // Remove non armor from any slot except heads newStack = stack; -- cgit