Fix AIOOB in RenderPipe

Closes #1059
This commit is contained in:
CovertJaguar 2013-07-27 13:39:39 -07:00
parent d62148bb07
commit 46d73fbc50

View file

@ -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;