#890 Infinite Energy with BuildCraft engines

This commit is contained in:
CrazyPants committed 2014-08-18 01:25:09 +08:00
1 parent a46a155e27
commit 79c4c764ca
1 file changed
+2 -2
@@ -263,7 +263,7 @@ public class TileCapacitorBank extends TileEntityEio implements IInternalPowerRe
}
//input any BC energy, yes, after output to avoid losing energy if we can
if(powerHandler != null && powerHandler.getEnergyStored() > 0) {
storedEnergy += powerHandler.getEnergyStored();
storedEnergy += powerHandler.getEnergyStored();
powerHandler.setEnergy(0);
}
if(isCreative) {
@@ -652,7 +652,7 @@ public class TileCapacitorBank extends TileEntityEio implements IInternalPowerRe
int canAccept = (int) Math.min(space, maxInput);
if(powerHandler == null || canAccept != mjBuf) {
mjBuf = canAccept;
powerHandler = PowerHandlerUtil.createHandler(new BasicCapacitor(maxInput, mjBuf, maxOutput), this, Type.STORAGE);
powerHandler = PowerHandlerUtil.createHandler(new BasicCapacitor(maxInput, mjBuf, maxOutput), this, Type.PIPE);
}
return powerHandler;
}