Fix another NPE when Items are in Block range with custom renderers, Modders keep your items out of the block range! Closes #581

This commit is contained in:
LexManos 2013-05-19 13:09:05 -07:00
parent 63b59f078a
commit 432023a9ba

View file

@ -88,7 +88,7 @@ public class ForgeHooksClient
Block block = (item.itemID < Block.blocksList.length ? Block.blocksList[item.itemID] : null);
if (is3D || (block != null && RenderBlocks.renderItemIn3d(block.getRenderType())))
{
int renderType = (item.itemID < Block.blocksList.length ? Block.blocksList[item.itemID].getRenderType() : 1);
int renderType = (block != null ? block.getRenderType() : 1);
float scale = (renderType == 1 || renderType == 19 || renderType == 12 || renderType == 2 ? 0.5F : 0.25F);
if (RenderItem.renderInFrame)