fix low/high energy stored

This commit is contained in:
asiekierka 2015-02-23 12:31:45 +01:00
parent ff60b8c893
commit 9d4c8d7740

View file

@ -28,7 +28,7 @@ import buildcraft.api.statements.ITriggerExternal;
import buildcraft.api.statements.ITriggerInternal;
import buildcraft.core.utils.StringUtils;
public class TriggerEnergy extends BCStatement implements ITriggerInternal, ITriggerExternal {
public class TriggerEnergy extends BCStatement implements ITriggerExternal {
private boolean high;
@ -69,18 +69,6 @@ public class TriggerEnergy extends BCStatement implements ITriggerInternal, ITri
return false;
}
@Override
public boolean isTriggerActive(IStatementContainer container, IStatementParameter[] parameters) {
if (container instanceof IGate) {
IGate gate = (IGate) container;
if (gate.getPipe() instanceof IEnergyHandler) {
return isTriggeredEnergyHandler((IEnergyHandler) gate.getPipe(), ForgeDirection.UNKNOWN);
}
}
return false;
}
@Override
public boolean isTriggerActive(TileEntity tile, ForgeDirection side, IStatementContainer container, IStatementParameter[] parameters) {
if (tile instanceof IEnergyHandler || tile instanceof IEnergyProvider || tile instanceof IEnergyReceiver) {