Fix FluidTank with empty contents throwing error if drained (#6196)
This commit is contained in:
parent
48ff897ed1
commit
c985225d0c
|
@ -190,7 +190,7 @@ public class FluidTank implements IFluidHandler, IFluidTank {
|
||||||
drained = fluid.getAmount();
|
drained = fluid.getAmount();
|
||||||
}
|
}
|
||||||
FluidStack stack = new FluidStack(fluid, drained);
|
FluidStack stack = new FluidStack(fluid, drained);
|
||||||
if (action.execute())
|
if (action.execute() && drained > 0)
|
||||||
{
|
{
|
||||||
fluid.shrink(drained);
|
fluid.shrink(drained);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue