From c10c06260b13bec4eafa8cd5c5a8d1a6d6bf7f8f Mon Sep 17 00:00:00 2001 From: drcrazy Date: Thu, 17 May 2018 03:43:58 +0300 Subject: [PATCH] Fixed excessive energy usage to charge RF items --- src/main/java/techreborn/tiles/storage/TileEnergyStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/techreborn/tiles/storage/TileEnergyStorage.java b/src/main/java/techreborn/tiles/storage/TileEnergyStorage.java index 9c43b3894..f7b0b668d 100644 --- a/src/main/java/techreborn/tiles/storage/TileEnergyStorage.java +++ b/src/main/java/techreborn/tiles/storage/TileEnergyStorage.java @@ -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()) {