mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
[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:
1 parent
ff0340f5b4
commit
44e690b8de
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user