[1.16] Make tryEmptyContainer respect doDrain (#8318)

This commit is contained in:
Joseph Tarbit authored and GitHub committed 2022-07-17 15:16:26 +01:00
1 parent 1af16d70cc
commit 2886f3ca34
1 file changed
+1 -1
@@ -176,7 +176,7 @@ public class FluidUtil
.map(containerFluidHandler -> {
// We are acting on a COPY of the stack, so performing changes is acceptable even if we are simulating.
FluidStack transfer = tryFluidTransfer(fluidDestination, containerFluidHandler, maxAmount, true);
FluidStack transfer = tryFluidTransfer(fluidDestination, containerFluidHandler, maxAmount, doDrain);
if (transfer.isEmpty())
return FluidActionResult.FAILURE;