mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
[1.16] Make tryEmptyContainer respect doDrain (#8318)
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user