From 96c8034636011d515d6e7ad464f424bdd853017b Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 16 Aug 2018 21:34:28 +0200 Subject: [PATCH] Bleep --- .../java/com/minelittlepony/render/layer/LayerPonyArmor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/render/layer/LayerPonyArmor.java b/src/main/java/com/minelittlepony/render/layer/LayerPonyArmor.java index ea748f8f..70c87764 100644 --- a/src/main/java/com/minelittlepony/render/layer/LayerPonyArmor.java +++ b/src/main/java/com/minelittlepony/render/layer/LayerPonyArmor.java @@ -57,8 +57,6 @@ public class LayerPonyArmor extends AbstractPonyLaye if (!itemstack.isEmpty() && itemstack.getItem() instanceof ItemArmor) { - ItemArmor itemarmor = (ItemArmor) itemstack.getItem(); - ModelPonyArmor armour = getArmorModel(entity, itemstack, armorSlot, layer, pony.getArmor().getArmorForLayer(layer)); if (armour.prepareToRender(armorSlot, layer)) { @@ -71,6 +69,8 @@ public class LayerPonyArmor extends AbstractPonyLaye getRenderer().bindTexture(armourTexture.getFirst()); + ItemArmor itemarmor = (ItemArmor) itemstack.getItem(); + if (itemarmor.getArmorMaterial() == ArmorMaterial.LEATHER) { Color.glColor(itemarmor.getColor(itemstack), 1); armour.render(entity, move, swing, ticks, headYaw, headPitch, scale);