This commit is contained in:
FloSoft 2012-09-15 16:22:22 +02:00
parent b902e8b82c
commit 52dd797b77

View file

@ -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);