From 6ca9b657b8c9a3f9b1cf1ec30031d09356d289f4 Mon Sep 17 00:00:00 2001 From: 90 Date: Mon, 29 Apr 2024 23:51:24 +0100 Subject: [PATCH] Wait, that's not right. --- src/main/java/gripe/_90/appliede/service/EMCStorage.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/gripe/_90/appliede/service/EMCStorage.java b/src/main/java/gripe/_90/appliede/service/EMCStorage.java index 7a590ac..2c30a65 100644 --- a/src/main/java/gripe/_90/appliede/service/EMCStorage.java +++ b/src/main/java/gripe/_90/appliede/service/EMCStorage.java @@ -145,16 +145,12 @@ public long extractItem(AEItemKey what, long amount, Actionable mode, IActionSou break; } - BigInteger withdrawn; - if (mode == Actionable.MODULATE) { energy.extractAEPower(energyToExpend, Actionable.MODULATE, PowerMultiplier.CONFIG); extract(EMCKey.base(), toWithdraw, Actionable.MODULATE, source); - withdrawn = BigInteger.valueOf(toWithdraw); - } else { - withdrawn = BigInteger.valueOf(canWithdraw); } + var withdrawn = BigInteger.valueOf(toWithdraw); acquiredItems += withdrawn.divide(itemEmc).longValue(); totalEmc = totalEmc.subtract(withdrawn).add(withdrawn.remainder(itemEmc)); }