Fix FluidTank with empty contents throwing error if drained (#6196)
This commit is contained in:
parent
48ff897ed1
commit
c985225d0c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue