mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Removed registration of planks for wood types that don't have planks
This commit is contained in:
1 parent
0c6491c80b
commit
aecc1632b1
1 file changed
+11
-6
@@ -48,12 +48,17 @@ public enum WoodType {
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static void registerIcons(IIconRegister register) {
|
||||
icons = new IIcon[3][VALUES.length];
|
||||
for (int i = 0; i < VALUES.length; i++)
|
||||
icons[0][i] = TextureManager.getInstance().registerTex(register, "wood/planks." + VALUES[i].toString().toLowerCase(Locale.ENGLISH));
|
||||
for (int i = 0; i < VALUES.length; i++)
|
||||
icons[1][i] = TextureManager.getInstance().registerTex(register, "wood/bark." + VALUES[i].toString().toLowerCase(Locale.ENGLISH));
|
||||
for (int i = 0; i < VALUES.length; i++)
|
||||
icons[2][i] = TextureManager.getInstance().registerTex(register, "wood/heart." + VALUES[i].toString().toLowerCase(Locale.ENGLISH));
|
||||
for (int i = 0; i < VALUES.length; i++) {
|
||||
WoodType woodType = VALUES[i];
|
||||
String woodName = woodType.toString().toLowerCase(Locale.ENGLISH);
|
||||
|
||||
if (woodType.hasPlank)
|
||||
icons[0][i] = TextureManager.getInstance().registerTex(register, "wood/planks." + woodName);
|
||||
else
|
||||
icons[0][i] = null;
|
||||
icons[1][i] = TextureManager.getInstance().registerTex(register, "wood/bark." + woodName);
|
||||
icons[2][i] = TextureManager.getInstance().registerTex(register, "wood/heart." + woodName);
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
Reference in new issue
Block a user