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:
parent
f951f6740d
commit
14e3ed13af
1 changed files with 4 additions and 2 deletions
|
@ -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)) {
|
||||
if (trigger instanceof ITriggerDirectional) {
|
||||
if (((ITriggerDirectional) trigger).isTriggerActive(o.getOpposite(), tile, parameter)) {
|
||||
return true;
|
||||
}
|
||||
} else if (trigger.isTriggerActive(tile, parameter)) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue