We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07d36d commit d39dcabCopy full SHA for d39dcab
src/main/scala/li/cil/oc/util/FluidUtils.scala
@@ -63,7 +63,7 @@ object FluidUtils {
63
stackToDrain = tankProperties(sourceTank).getContents
64
if (stackToDrain != null) {
65
stackToDrain = stackToDrain.copy()
66
- stackToDrain.amount = math.max(stackToDrain.amount, limit)
+ stackToDrain.amount = math.min(stackToDrain.amount, limit)
67
}
68
69
0 commit comments