From 5303b5a5deab65af783d9d9691916fa956ea048a Mon Sep 17 00:00:00 2001 From: SirSengir Date: Sun, 9 Sep 2012 09:31:44 +0200 Subject: [PATCH] Possible fix for rendering NPE. --- common/buildcraft/transport/render/RenderPipe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/transport/render/RenderPipe.java b/common/buildcraft/transport/render/RenderPipe.java index 37d2344c..94007f55 100644 --- a/common/buildcraft/transport/render/RenderPipe.java +++ b/common/buildcraft/transport/render/RenderPipe.java @@ -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);