Fix minor mistake
This commit is contained in:
parent
02c708cd21
commit
1c6e26dd99
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ public class TileEnergyStorage extends TilePowerAcceptor
|
||||||
if(stack.hasCapability(CapabilityEnergy.ENERGY, null)){
|
if(stack.hasCapability(CapabilityEnergy.ENERGY, null)){
|
||||||
IEnergyStorage energyStorage = stack.getCapability(CapabilityEnergy.ENERGY, null);
|
IEnergyStorage energyStorage = stack.getCapability(CapabilityEnergy.ENERGY, null);
|
||||||
if(getEnergy() > 0 && energyStorage.getEnergyStored() < energyStorage.getMaxEnergyStored()){
|
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){
|
if(CompatManager.isIC2Loaded){
|
||||||
|
|
Loading…
Reference in a new issue