When I wear boots, it renders leggings over the leggings I already have. Here's a picture of the problem.
The leggings are purple while the boots are blue, but as you can see, the boots are rendering over the leggings as leggings.
Here's my declaration of the item
public final static Item crystalBoots = new ItemCustomBoots(5064, CRYSTALARMOR, RenderingRegistry.addNewArmourRendererPrefix("Crystal"), 3, "crystalArmor2").setItemName("crystalBoots").setIconIndex(22);
The declaration of the CRYSTALARMOR EnumArmorMaterial
static EnumArmorMaterial CRYSTALARMOR = EnumHelper.addArmorMaterial("CRYSTAL", 4, new int[]{4,8,6,4}, 15);
ItemCustomBoots
package com.strikepointdev.oam;
import net.minecraft.src.EnumArmorMaterial;
import net.minecraft.src.ItemArmor;
import net.minecraft.src.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;
public class ItemCustomBoots extends ItemArmor implements IArmorTextureProvider{
public String textureName;
public ItemCustomBoots(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String itemName) {
super(par1, par2EnumArmorMaterial, par3, par4);
this.textureName = itemName;
}
public String getTextureFile(){
return "/spd/oam/items.png";
}
public String getArmorTextureFile(ItemStack par1){
return "/spd/oam/" + textureName + ".png";
}
}
Thanks in advance.