mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Fix FluidTank with empty contents throwing error if drained (#6196)
This commit is contained in:
1 parent
48ff897ed1
commit
c985225d0c
1 file changed
+1
-1
@@ -190,7 +190,7 @@ public class FluidTank implements IFluidHandler, IFluidTank {
|
||||
drained = fluid.getAmount();
|
||||
}
|
||||
FluidStack stack = new FluidStack(fluid, drained);
|
||||
if (action.execute())
|
||||
if (action.execute() && drained > 0)
|
||||
{
|
||||
fluid.shrink(drained);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user