fix low/high energy stored
This commit is contained in:
parent
ff60b8c893
commit
9d4c8d7740
1 changed files with 1 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue