Changed fluid network to use FluidUtility to detect changes when draining tanks
This commit is contained in:
parent
3cac78bb60
commit
8011370163
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue