Fixed itemBlock rendering. TOP\Waila are still an issue

This commit is contained in:
drcrazy 2017-11-05 02:32:06 +03:00
parent 047507f4fc
commit 19ccbd681d
6 changed files with 94 additions and 42 deletions

View file

@ -35,7 +35,6 @@ import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import techreborn.blocks.cable.BlockCable;
import techreborn.blocks.cable.EnumCableType;
import techreborn.blocks.generator.solarpanel.EnumPanelType;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
import techreborn.init.ModItems;
@ -176,10 +175,6 @@ public class RegisterItemJsons {
registerBlockstateMultiItem(Item.getItemFromBlock(ModBlocks.CABLE), cableType.ordinal(), cableType.getName().toLowerCase(), "cable_inv");
}
for (EnumPanelType panelType : EnumPanelType.values()) {
registerBlockstate(Item.getItemFromBlock(ModBlocks.SOLAR_PANEL), panelType.ordinal(), panelType.getName().toLowerCase() + ",active=false", "blocks/generators/");
}
ModelLoader.setCustomStateMapper(ModBlocks.CABLE, new DefaultStateMapper() {
@Override
protected ModelResourceLocation getModelResourceLocation(IBlockState state) {