Fixed excessive energy usage to charge RF items
This commit is contained in:
parent
29b886ea8d
commit
c10c06260b
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue