Reactor stats fix
Fixing IC2 power output not updating stats
This commit is contained in:
parent
566e71c288
commit
b7e739ff43
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue