Fixed fluid lose issue in tanks

This commit is contained in:
DarkGuardsman 2014-01-15 08:15:13 -05:00
parent 29b59d88e0
commit 8213d6e80b

View file

@ -160,7 +160,7 @@ public class FluidNetwork extends Network<IFluidNetwork, IFluidPart, IFluidHandl
part.getInternalTank().setFluid(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);
part.onFluidChanged();
if (parts > 1)