aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-22 12:38:54 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-22 12:38:54 +0200
commit6e5730be493996fd5a6bebd0c7b9bb87e6b6b31c (patch)
treec97f2eb090ea83fb7f3ee507274692c70dd54d90 /src
parente176ed76f756be322d1f866375e054f0cd438885 (diff)
downloadNotEnoughUpdates-6e5730be493996fd5a6bebd0c7b9bb87e6b6b31c.tar.gz
NotEnoughUpdates-6e5730be493996fd5a6bebd0c7b9bb87e6b6b31c.tar.bz2
NotEnoughUpdates-6e5730be493996fd5a6bebd0c7b9bb87e6b6b31c.zip
Fix not being able to dye via neucustomize undyed leather armour
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemCustomize.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemCustomize.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemCustomize.java
index 07f1340d..fb0deaaf 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemCustomize.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemCustomize.java
@@ -68,7 +68,7 @@ public class GuiItemCustomize extends GuiScreen {
this.enchantGlint = stackHasEffect;
}
- supportCustomLeatherColour = stack.getItem() instanceof ItemArmor && ((ItemArmor)stack.getItem()).hasColor(stack);
+ supportCustomLeatherColour = stack.getItem() instanceof ItemArmor && ((ItemArmor) stack.getItem()).getArmorMaterial() == ItemArmor.ArmorMaterial.LEATHER;
enchantGlintCustomColourAnimation.setValue(enchantGlint ? 17 : 0);
this.enchantGlintButton = new GuiElementBoolean(0, 0, enchantGlint, (bool) -> {