Skip to content

Commit

Permalink
That's also not right.
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 29, 2024
1 parent 1346377 commit 8bf27b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/gripe/_90/appliede/service/EMCStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ public long extractItem(AEItemKey what, long amount, Actionable mode, IActionSou
var energyToExpend = PowerMultiplier.CONFIG.multiply(toWithdraw);
var availablePower = energy.extractAEPower(energyToExpend, Actionable.SIMULATE, PowerMultiplier.CONFIG);

if (availablePower < energyToExpend) {
break;
}

if (mode == Actionable.MODULATE) {
if (availablePower < energyToExpend) {
break;
}

energy.extractAEPower(energyToExpend, Actionable.MODULATE, PowerMultiplier.CONFIG);
extract(EMCKey.base(), toWithdraw, Actionable.MODULATE, source);
}
Expand Down

0 comments on commit 8bf27b3

Please sign in to comment.