Inventory triggers should not be side specific by default, following #1886
This commit is contained in:
parent
fa98a71d18
commit
ff0307702e
2 changed files with 5 additions and 7 deletions
|
@ -35,7 +35,7 @@ public abstract class BCTrigger extends BCStatement implements ITrigger {
|
|||
Pipe<?> pipe = (Pipe<?>) gate.getPipe();
|
||||
|
||||
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
|
||||
if (isTriggerActive(side.getOpposite(), pipe.getAdjacentTile(side), p)) {
|
||||
if (isTriggerActive(side, pipe.getAdjacentTile(side), p)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,12 +111,10 @@ public class ContainerGateInterface extends BuildCraftContainer {
|
|||
potentialTriggers.addAll(pipe.container.getTriggers());
|
||||
|
||||
for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {
|
||||
if (pipe.hasGate(o)) {
|
||||
TileEntity tile = pipe.container.getTile(o);
|
||||
Block block = pipe.container.getBlock(o);
|
||||
potentialTriggers.addAll(StatementManager.getNeighborTriggers(block, tile));
|
||||
potentialActions.addAll(StatementManager.getNeighborActions(block, tile));
|
||||
}
|
||||
TileEntity tile = pipe.container.getTile(o);
|
||||
Block block = pipe.container.getBlock(o);
|
||||
potentialTriggers.addAll(StatementManager.getNeighborTriggers(block, tile));
|
||||
potentialActions.addAll(StatementManager.getNeighborActions(block, tile));
|
||||
}
|
||||
|
||||
if (gate.material.numTriggerParameters == 0) {
|
||||
|
|
Loading…
Reference in a new issue