aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-07-25 01:18:52 +1000
committerGitHub <noreply@github.com>2024-07-24 17:18:52 +0200
commit3f7296e30202786e6a6a2b4b1960e82ee435e3dc (patch)
treeea3313dfc3459fb566abe9992d1e69ae700c70ca
parent90a56d740eab1ffe5b83881b4cdf97e4f9a01eed (diff)
downloadnotenoughupdates-3f7296e30202786e6a6a2b4b1960e82ee435e3dc.tar.gz
notenoughupdates-3f7296e30202786e6a6a2b4b1960e82ee435e3dc.tar.bz2
notenoughupdates-3f7296e30202786e6a6a2b4b1960e82ee435e3dc.zip
Fix neurename not being able to change armour into other armour (#1247)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/itemcustomization/ItemCustomizeManager.java2
1 files changed, 1 insertions, 1 deletions
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;