Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ramidzkh committed Nov 3, 2023
1 parent 4f0d321 commit 3ece1bf
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package me.ramidzkh.mekae2.ae2.stack;

import com.google.common.primitives.Ints;

import org.jetbrains.annotations.Nullable;

import net.minecraft.network.chat.Component;
Expand Down Expand Up @@ -57,7 +55,7 @@ public long extract(AEKey what, long amount, Actionable mode, IActionSource sour
return 0;
}

var extracted = handler.extractChemical(key.withAmount(Ints.saturatedCast(amount)),
var extracted = handler.extractChemical(key.withAmount(amount),
Action.fromFluidAction(mode.getFluidAction())).getAmount();

if (extracted > 0 && mode == Actionable.MODULATE) {
Expand Down

0 comments on commit 3ece1bf

Please sign in to comment.