Some 4096 I missed in custom renderers.

This commit is contained in:
LexManos 2012-06-21 04:05:50 -07:00
parent c74c5ba2d2
commit acf70e1047

View file

@ -338,7 +338,7 @@ public class ForgeHooksClient
} }
boolean is3D = customRenderer.shouldUseRenderHelper(ENTITY, item, BLOCK_3D); boolean is3D = customRenderer.shouldUseRenderHelper(ENTITY, item, BLOCK_3D);
if (item.itemID < 256 && (is3D || RenderBlocks.renderItemIn3d(Block.blocksList[item.itemID].getRenderType()))) if (item.getItem() instanceof ItemBlock && (is3D || RenderBlocks.renderItemIn3d(Block.blocksList[item.itemID].getRenderType())))
{ {
engine.bindTexture(engine.getTexture(item.getItem().getTextureFile())); engine.bindTexture(engine.getTexture(item.getItem().getTextureFile()));
int renderType = Block.blocksList[item.itemID].getRenderType(); int renderType = Block.blocksList[item.itemID].getRenderType();