Fix #271
This commit is contained in:
parent
b902e8b82c
commit
52dd797b77
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue