From 52dd797b776e0bcf5c4c94e3d3792f7f8722f8e4 Mon Sep 17 00:00:00 2001 From: FloSoft Date: Sat, 15 Sep 2012 16:22:22 +0200 Subject: [PATCH] Fix #271 --- common/buildcraft/transport/gui/ContainerGateInterface.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/buildcraft/transport/gui/ContainerGateInterface.java b/common/buildcraft/transport/gui/ContainerGateInterface.java index dd0ec076..b32dbe1d 100644 --- a/common/buildcraft/transport/gui/ContainerGateInterface.java +++ b/common/buildcraft/transport/gui/ContainerGateInterface.java @@ -16,6 +16,7 @@ import buildcraft.api.core.Orientations; import buildcraft.api.core.Position; import buildcraft.api.gates.ActionManager; import buildcraft.api.gates.IAction; +import buildcraft.api.gates.IOverrideDefaultTriggers; import buildcraft.api.gates.ITrigger; import buildcraft.api.gates.ITriggerParameter; import buildcraft.api.gates.TriggerParameter; @@ -64,6 +65,10 @@ public class ContainerGateInterface extends BuildCraftContainer { _potentialActions.addAll(pipe.getActions()); _potentialTriggers.addAll(ActionManager.getPipeTriggers(pipe)); + TileEntity ptile = pipe.worldObj.getBlockTileEntity(pipe.xCoord, pipe.yCoord, pipe.zCoord); + if (ptile instanceof IOverrideDefaultTriggers) + _potentialTriggers.addAll( ((IOverrideDefaultTriggers)ptile).getTriggers()); + for (Orientations o : Orientations.dirs()) { Position pos = new Position(pipe.xCoord, pipe.yCoord, pipe.zCoord, o); pos.moveForwards(1.0);