restore the old redstone i/o behaviour in core/triggers as well

This commit is contained in:
asiekierka 2014-10-25 12:07:04 +02:00
parent 210900a8f8
commit d02b0dc066

View file

@ -30,7 +30,8 @@ public class TriggerRedstoneInput extends BCTrigger {
@Override @Override
public boolean isTriggerActive(IGate gate, ITriggerParameter[] parameters) { public boolean isTriggerActive(IGate gate, ITriggerParameter[] parameters) {
TileGenericPipe tile = (TileGenericPipe) gate.getPipe().getTile(); TileGenericPipe tile = (TileGenericPipe) gate.getPipe().getTile();
int level = tile.redstoneInputSide[gate.getSide().ordinal()]; //int level = tile.redstoneInputSide[gate.getSide().ordinal()];
int level = tile.redstoneInput;
return active ? level > 0 : level == 0; return active ? level > 0 : level == 0;
} }