[Bugfix] One should not assume an item would use the item spritesheet.

Item class has a func to return an int to use terrain.png or items.png. This makes forge take account of it.
This commit is contained in:
iChun 2013-03-13 20:36:32 +08:00
parent ff0340f5b4
commit 44e690b8de

View file

@ -101,7 +101,7 @@ public class ForgeHooksClient
}
else
{
engine.func_98187_b("/gui/items.png");
engine.func_98187_b(item.func_94608_d() == 0 ? "/terrain.png" : "/gui/items.png");
GL11.glScalef(0.5F, 0.5F, 0.5F);
customRenderer.renderItem(ENTITY, item, renderBlocks, entity);
}
@ -116,7 +116,7 @@ public class ForgeHooksClient
return false;
}
engine.func_98187_b("/gui/items.png");
engine.func_98187_b(item.func_94608_d() == 0 ? "/terrain.png" : "/gui/items.png");
if (customRenderer.shouldUseRenderHelper(INVENTORY, item, INVENTORY_BLOCK))
{
GL11.glPushMatrix();