Possible fix for rendering NPE.
This commit is contained in:
parent
16121bd0a7
commit
5303b5a5de
1 changed files with 2 additions and 2 deletions
|
@ -450,8 +450,8 @@ public class RenderPipe extends TileEntitySpecialRenderer {
|
|||
}
|
||||
|
||||
} else if (itemstack.itemID < Block.blocksList.length && Block.blocksList[itemstack.itemID] != null
|
||||
&& Block.blocksList[itemstack.itemID].blockID != 0
|
||||
&& RenderBlocks.renderItemIn3d(Block.blocksList[itemstack.itemID].getRenderType())) {
|
||||
&& Block.blocksList[itemstack.itemID].blockID != 0) {
|
||||
//&& RenderBlocks.renderItemIn3d(Block.blocksList[itemstack.itemID].getRenderType())) {
|
||||
GL11.glTranslatef(0, 0.25F, 0); // BC SPECIFIC
|
||||
|
||||
ForgeHooksClient.bindTexture(Block.blocksList[itemstack.itemID].getTextureFile(), 0);
|
||||
|
|
Loading…
Reference in a new issue