mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 11:59:17 +00:00
#890 Infinite Energy with BuildCraft engines
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user