@@ -51,6 +51,7 @@ public static boolean registerAxe(Cfg_axe data){
5151 Registry .itemsList .add (axe );
5252 Registry .itemsList .add (data .creativeTab );
5353
54+ axe .setTextureName (data .textureName );
5455 GameRegistry .registerItem (axe , registerName );
5556 axe .setUnlocalizedName (Registry .mod_id .toLowerCase ()+":" +data .textureName );
5657 LanguageRegistry .instance ().addStringLocalization (axe .getUnlocalizedName ()+".name" ,"en_US" ,data .name .substring (0 , 1 ).toUpperCase ()+data .name .substring (1 ));
@@ -90,6 +91,7 @@ public static boolean registerBoots(Cfg_boots data){
9091 Registry .itemsList .add (armor );
9192 Registry .itemsList .add (data .creativeTab );
9293
94+ armor .setTextureName (data .textureName );
9395 GameRegistry .registerItem (armor , registerName );
9496 armor .setUnlocalizedName (Registry .mod_id .toLowerCase ()+":" +data .name );
9597 LanguageRegistry .instance ().addStringLocalization (armor .getUnlocalizedName ()+".name" ,"en_US" ,data .name .substring (0 , 1 ).toUpperCase ()+data .name .substring (1 ));
@@ -128,6 +130,7 @@ public static boolean registerChestplate(Cfg_chestplate data){
128130 Registry .itemsList .add (armor );
129131 Registry .itemsList .add (data .creativeTab );
130132
133+ armor .setTextureName (data .textureName );
131134 GameRegistry .registerItem (armor , registerName );
132135 armor .setUnlocalizedName (Registry .mod_id .toLowerCase ()+":" +data .name );
133136 LanguageRegistry .instance ().addStringLocalization (armor .getUnlocalizedName ()+".name" ,"en_US" ,data .name .substring (0 , 1 ).toUpperCase ()+data .name .substring (1 ));
@@ -212,6 +215,7 @@ public static boolean registerHelmet(Cfg_helmet data){
212215 Registry .itemsList .add (armor );
213216 Registry .itemsList .add (data .creativeTab );
214217
218+ armor .setTextureName (data .textureName );
215219 GameRegistry .registerItem (armor , registerName );
216220 armor .setUnlocalizedName (Registry .mod_id .toLowerCase ()+":" +data .name );
217221 LanguageRegistry .instance ().addStringLocalization (armor .getUnlocalizedName ()+".name" ,"en_US" ,data .name .substring (0 , 1 ).toUpperCase ()+data .name .substring (1 ));
@@ -252,6 +256,7 @@ public static boolean registerHoe(Cfg_hoe data){
252256 Registry .itemsList .add (hoe );
253257 Registry .itemsList .add (data .creativeTab );
254258
259+ hoe .setTextureName (data .textureName );
255260 GameRegistry .registerItem (hoe , registerName );
256261 hoe .setUnlocalizedName (Registry .mod_id .toLowerCase ()+":" +data .textureName );
257262 LanguageRegistry .instance ().addStringLocalization (hoe .getUnlocalizedName ()+".name" ,"en_US" ,data .name .substring (0 , 1 ).toUpperCase ()+data .name .substring (1 ));
@@ -323,6 +328,7 @@ public static boolean registerLeggings(Cfg_leggings data){
323328 Registry .itemsList .add (armor );
324329 Registry .itemsList .add (data .creativeTab );
325330
331+ armor .setTextureName (data .textureName );
326332 GameRegistry .registerItem (armor , registerName );
327333 armor .setUnlocalizedName (Registry .mod_id .toLowerCase ()+":" +data .name );
328334 LanguageRegistry .instance ().addStringLocalization (armor .getUnlocalizedName ()+".name" ,"en_US" ,data .name .substring (0 , 1 ).toUpperCase ()+data .name .substring (1 ));
@@ -360,6 +366,7 @@ public static boolean registerPickaxe(Cfg_pickaxe data){
360366
361367 CustomPickaxe pickaxe = new CustomPickaxe (material );
362368
369+ pickaxe .setTextureName (data .textureName );
363370 Registry .itemsList .add (pickaxe );
364371 Registry .itemsList .add (data .creativeTab );
365372
@@ -400,6 +407,7 @@ public static boolean registerShovel(Cfg_shovel data){
400407
401408 CustomShovel shovel = new CustomShovel (material );
402409
410+ shovel .setTextureName (data .textureName );
403411 Registry .itemsList .add (shovel );
404412 Registry .itemsList .add (data .creativeTab );
405413
@@ -440,6 +448,7 @@ public static boolean registerSword(Cfg_sword data){
440448
441449 CustomSword sword = new CustomSword (material );
442450
451+ sword .setTextureName (data .textureName );
443452 Registry .itemsList .add (sword );
444453 Registry .itemsList .add (data .creativeTab );
445454
0 commit comments