mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fixed armor displaying on wrong body segments
This commit is contained in:
1 parent
69c96fdcbe
commit
13460ccbb9
1 file changed
+1
-1
@@ -37,7 +37,7 @@ public class ItemMekanismArmor extends ItemArmor
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type)
|
||||
{
|
||||
int layer = (slot == EntityEquipmentSlot.CHEST) ? 2 : 1;
|
||||
int layer = (slot == EntityEquipmentSlot.LEGS) ? 2 : 1;
|
||||
return "mekanism:armor/" + getArmorMaterial().name().toLowerCase() + "_" + layer + ".png";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user