Try and fix cable inv rendering
This commit is contained in:
parent
624d8fb93a
commit
e0f63fd0c5
3 changed files with 62 additions and 1 deletions
|
@ -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() {
|
||||
|
|
|
@ -215,7 +215,7 @@ public class ModBlocks {
|
|||
GameRegistry.registerTileEntity(TileCable.class, "TileCableTR");
|
||||
Core.proxy.registerCustomBlockStateLocation(CABLE, "cable");
|
||||
for (EnumCableType cableType : EnumCableType.values()) {
|
||||
Core.proxy.registerSubBlockInventoryLocation(CABLE, cableType.ordinal(), "techreborn:cable", "inventory");//"type=" + cableType.getName().toLowerCase());
|
||||
Core.proxy.registerSubBlockInventoryLocation(CABLE, cableType.ordinal(), "techreborn:cable", "type=inv_" + cableType.getName().toLowerCase());
|
||||
}
|
||||
|
||||
MACHINE_CASINGS = new BlockMachineCasing(Material.ROCK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue