Try and fix cable inv rendering

This commit is contained in:
modmuss50 2017-06-12 11:17:57 +01:00
parent 624d8fb93a
commit e0f63fd0c5
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
3 changed files with 62 additions and 1 deletions

View file

@ -33,6 +33,7 @@ import techreborn.blocks.BlockOre;
import techreborn.blocks.BlockOre2;
import techreborn.blocks.BlockStorage;
import techreborn.blocks.BlockStorage2;
import techreborn.blocks.cable.EnumCableType;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
import techreborn.init.ModItems;
@ -176,6 +177,10 @@ public class RegisterItemJsons {
String[] name = BlockStorage2.types.clone();
registerBlockstate(ModBlocks.STORAGE2, i, name[i]);
}
for (EnumCableType cableType : EnumCableType.values()) {
registerBlockstate(ModBlocks.CABLE, cableType.ordinal(), "inv_" +cableType.getName().toLowerCase());
}
}
private static void registerBlocks() {