Fixed fluid lose issue in tanks
This commit is contained in:
parent
29b59d88e0
commit
8213d6e80b
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ public class FluidNetwork extends Network<IFluidNetwork, IFluidPart, IFluidHandl
|
||||||
part.getInternalTank().setFluid(null);
|
part.getInternalTank().setFluid(null);
|
||||||
if (stack != null)
|
if (stack != null)
|
||||||
{
|
{
|
||||||
int fillPer = stack.amount / parts;
|
int fillPer = (stack.amount / parts) + (stack.amount % parts);
|
||||||
stack.amount -= part.getInternalTank().fill(FluidUtility.getStack(stack, fillPer), true);
|
stack.amount -= part.getInternalTank().fill(FluidUtility.getStack(stack, fillPer), true);
|
||||||
part.onFluidChanged();
|
part.onFluidChanged();
|
||||||
if (parts > 1)
|
if (parts > 1)
|
||||||
|
|
Loading…
Reference in a new issue