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);