This commit is contained in:
Sollace 2018-08-16 21:34:28 +02:00
parent 23f2151eed
commit 96c8034636

View file

@ -57,8 +57,6 @@ public class LayerPonyArmor<T extends EntityLivingBase> 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<T extends EntityLivingBase> 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);