Changed fluid network to use FluidUtility to detect changes when draining tanks

This commit is contained in:
DarkGuardsman 2014-01-20 07:47:32 -05:00
parent 3cac78bb60
commit 8011370163

View file

@ -131,7 +131,7 @@ public abstract class FluidNetwork extends NodeNetwork<IFluidNetwork, IFluidConn
FluidStack before = this.getTank().getFluid();
FluidStack drain = this.getTank().drain(resource.amount, doDrain);
if (before != this.getTank().getFluid() || this.getTank().getFluid() == null || this.getTank().getFluid().amount != before.amount)
if (!FluidUtility.matchExact(before, drain))
{
this.reconstructTankInfo();
}