From 46d73fbc5056c9a1244ef75843e6bfe7c0dc1c5c Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Sat, 27 Jul 2013 13:39:39 -0700 Subject: [PATCH] Fix AIOOB in RenderPipe Closes #1059 --- common/buildcraft/transport/render/RenderPipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buildcraft/transport/render/RenderPipe.java b/common/buildcraft/transport/render/RenderPipe.java index a689bd88..3b069343 100644 --- a/common/buildcraft/transport/render/RenderPipe.java +++ b/common/buildcraft/transport/render/RenderPipe.java @@ -86,7 +86,7 @@ public class RenderPipe extends TileEntitySpecialRenderer { BlockInterface block = new BlockInterface(); Fluid fluid = FluidRegistry.getFluid(liquidId); - if (fluid.getBlockID() != 0) { + if (fluid.getBlockID() > 0) { block.baseBlock = Block.blocksList[fluid.getBlockID()]; } else { block.baseBlock = Block.waterStill;