Greetings.
I have this line of code in my main mod class:
public static Item Goggles = new ArmorGoggles(1010, armorGoggles, ModLoader.addArmor("goggles"), 0).setUnlocalizedName("Goggles");
My client launches perfectly fine and I can play single player, and the goggle texture appears perfectly fine on my face.
However when I launch my server, it crashes immediately. It was due to a "NoSuchMethodError: net.minecraft.src.ModLoader.addArmor" error. I fixed it by replacing the ModLoader.addArmor method with a 0 instead for the placeholder texture, and the server launched fine, but then I could not see MY textures properly.
What I want to know is there some other way to register armor textures, or a solution that allows me to do it the way I'm doing it now?