From 14e3ed13aff9132ee157240f2af948eaebd8f9ff Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Thu, 29 Nov 2012 09:15:33 -0800 Subject: [PATCH] Minor fix to last commit Faulty logic could potentially have resulted in odd results. I didn't see any when I tested it, but logically it could have happened. --- common/buildcraft/transport/Pipe.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/transport/Pipe.java b/common/buildcraft/transport/Pipe.java index 7461c7ab..aca2016a 100644 --- a/common/buildcraft/transport/Pipe.java +++ b/common/buildcraft/transport/Pipe.java @@ -465,8 +465,10 @@ public abstract class Pipe implements IPipe, IDropControlInventory { TileEntity tile = container.getTile(o); if (tile != null && !(tile instanceof TileGenericPipe)) { - if (trigger instanceof ITriggerDirectional && ((ITriggerDirectional) trigger).isTriggerActive(o.getOpposite(), tile, parameter)) { - return true; + if (trigger instanceof ITriggerDirectional) { + if (((ITriggerDirectional) trigger).isTriggerActive(o.getOpposite(), tile, parameter)) { + return true; + } } else if (trigger.isTriggerActive(tile, parameter)) { return true; }