From 108adc1a03c79d1ffcca4ed3a64440b289fe4e2e Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Thu, 18 Jul 2013 22:19:43 -0700 Subject: [PATCH] Fix possible exception --- common/buildcraft/transport/BlockGenericPipe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/transport/BlockGenericPipe.java b/common/buildcraft/transport/BlockGenericPipe.java index 5d236a34..67c79117 100644 --- a/common/buildcraft/transport/BlockGenericPipe.java +++ b/common/buildcraft/transport/BlockGenericPipe.java @@ -191,9 +191,9 @@ public class BlockGenericPipe extends BlockContainer { float xMin = Utils.pipeMinPos, xMax = Utils.pipeMaxPos, yMin = Utils.pipeMinPos, yMax = Utils.pipeMaxPos, zMin = Utils.pipeMinPos, zMax = Utils.pipeMaxPos; TileEntity tile1 = world.getBlockTileEntity(i, j, k); - TileGenericPipe tileG = (TileGenericPipe) tile1; - if (tileG != null) { + if (tile1 instanceof TileGenericPipe) { + TileGenericPipe tileG = (TileGenericPipe) tile1; if (Utils.checkPipesConnections(world, tile1, i - 1, j, k) || tileG.hasFacade(ForgeDirection.WEST)) { xMin = 0.0F; }