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.
This commit is contained in:
CovertJaguar 2012-11-29 09:15:33 -08:00
parent f951f6740d
commit 14e3ed13af

View file

@ -465,8 +465,10 @@ public abstract class Pipe implements IPipe, IDropControlInventory {
TileEntity tile = container.getTile(o); TileEntity tile = container.getTile(o);
if (tile != null && !(tile instanceof TileGenericPipe)) { if (tile != null && !(tile instanceof TileGenericPipe)) {
if (trigger instanceof ITriggerDirectional && ((ITriggerDirectional) trigger).isTriggerActive(o.getOpposite(), tile, parameter)) { if (trigger instanceof ITriggerDirectional) {
return true; if (((ITriggerDirectional) trigger).isTriggerActive(o.getOpposite(), tile, parameter)) {
return true;
}
} else if (trigger.isTriggerActive(tile, parameter)) { } else if (trigger.isTriggerActive(tile, parameter)) {
return true; return true;
} }