Fix minor mistake

This commit is contained in:
modmuss50 2018-05-23 15:06:29 +01:00
parent 02c708cd21
commit 1c6e26dd99

View file

@ -74,7 +74,7 @@ public class TileEnergyStorage extends TilePowerAcceptor
if(stack.hasCapability(CapabilityEnergy.ENERGY, null)){
IEnergyStorage energyStorage = stack.getCapability(CapabilityEnergy.ENERGY, null);
if(getEnergy() > 0 && energyStorage.getEnergyStored() < energyStorage.getMaxEnergyStored()){
energyStorage.receiveEnergy((int) useEnergy(getMaxOutput() / RebornCoreConfig.euPerFU) * RebornCoreConfig.euPerFU, false);
energyStorage.receiveEnergy((int) useEnergy(getMaxOutput()) * RebornCoreConfig.euPerFU, false);
}
}
if(CompatManager.isIC2Loaded){