Fixed excessive energy usage to charge RF items

This commit is contained in:
drcrazy 2018-05-17 03:43:58 +03:00
parent 29b886ea8d
commit c10c06260b

View file

@ -79,7 +79,7 @@ public class TileEnergyStorage extends TilePowerAcceptor
if(stack.hasCapability(CapabilityEnergy.ENERGY, null)){
IEnergyStorage energyStorage = stack.getCapability(CapabilityEnergy.ENERGY, null);
int max = Math.min(maxOutput, (int) getEnergy()) * RebornCoreConfig.euPerFU;
useEnergy(energyStorage.receiveEnergy(max, false) * RebornCoreConfig.euPerFU);
useEnergy(energyStorage.receiveEnergy(max, false) / RebornCoreConfig.euPerFU);
}
}
if (!inventory.getStackInSlot(1).isEmpty()) {