Reactor stats fix

Fixing IC2 power output not updating stats
This commit is contained in:
LemADEC 2014-08-16 18:16:15 +02:00
parent 566e71c288
commit b7e739ff43

View file

@ -69,7 +69,7 @@ public abstract class WarpEnergyTE extends WarpTE implements IEnergyHandler, IEn
protected boolean consumeEnergy(int amount, boolean simulate) { protected boolean consumeEnergy(int amount, boolean simulate) {
if(getEnergyStored() >= amount) { if (getEnergyStored() >= amount) {
if (!simulate) { if (!simulate) {
energyStored_internal -= amount; energyStored_internal -= amount;
} }
@ -177,7 +177,7 @@ public abstract class WarpEnergyTE extends WarpTE implements IEnergyHandler, IEn
@Override @Override
public void drawEnergy(double amount) { public void drawEnergy(double amount) {
consumeEnergy(convertEUtoInternal(amount), false); energyOutputDone(convertEUtoInternal(amount));
} }
@Override @Override