Skip to content

Commit

Permalink
Fix FluidUtils tank limit handling bug (#3659)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Apr 7, 2024
1 parent c07d36d commit d39dcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/li/cil/oc/util/FluidUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object FluidUtils {
stackToDrain = tankProperties(sourceTank).getContents
if (stackToDrain != null) {
stackToDrain = stackToDrain.copy()
stackToDrain.amount = math.max(stackToDrain.amount, limit)
stackToDrain.amount = math.min(stackToDrain.amount, limit)
}
}
}
Expand Down

0 comments on commit d39dcab

Please sign in to comment.