Skip to content

Commit

Permalink
Merge pull request #24 from GTNewHorizons/feature/condenser
Browse files Browse the repository at this point in the history
Fix Essentia Condenser interaction
  • Loading branch information
Dream-Master authored Jun 26, 2022
2 parents a968a90 + b1dd55e commit f42a385
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public long extractFromContainer(final IAspectContainer container, int amountToD

// Are we really draining, or just simulating?
if (mode == Actionable.MODULATE) {
container.takeFromContainer(aspectToDrain, amountToDrain);
if (!container.takeFromContainer(aspectToDrain, amountToDrain))
return 0;
}

// Return how much was drained
Expand Down

0 comments on commit f42a385

Please sign in to comment.