Fix RenderItem to work with items that use the terrain texture map that aren't in the block ID range. Close #443

This commit is contained in:
LexManos 2013-03-12 19:02:18 -07:00
parent 31b908473d
commit 48e95f3d44

View file

@ -120,7 +120,7 @@
+ GL11.glTranslatef(0f, 0f, f12 + f11);
+ }
+
+ if (itemstack.func_94608_d() == 0 && itemstack.itemID < Block.blocksList.length && Block.blocksList[itemstack.itemID] != null)
+ if (itemstack.func_94608_d() == 0)
{
this.loadTexture("/terrain.png");
}