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:
parent
63b59f078a
commit
432023a9ba
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue