Skip to content

Commit

Permalink
Wait, that's not right.
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 29, 2024
1 parent 2d9121e commit 6ca9b65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/gripe/_90/appliede/service/EMCStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 6ca9b65

Please sign in to comment.