Tank network works again, animation still needs fixed

This commit is contained in:
Robert S 2014-05-16 15:06:05 -04:00
parent ae3cba60f6
commit a3e04e0747
2 changed files with 6 additions and 2 deletions

View file

@ -87,8 +87,11 @@ public abstract class FluidDistributionetwork extends NodeNetwork<FluidDistribut
System.out.println("FluidDistributionNetwork: Tank Contains Fluid: " + getTank().getFluid() + " Tank: " + this.getTank().getFluidAmount()); System.out.println("FluidDistributionNetwork: Tank Contains Fluid: " + getTank().getFluid() + " Tank: " + this.getTank().getFluidAmount());
int fill = this.getTank().fill(resource.copy(), doFill); int fill = this.getTank().fill(resource.copy(), doFill);
System.out.println("FluidDistributionNetwork: Filled " + fill + " Tank: " + this.getTank().getFluidAmount()); System.out.println("FluidDistributionNetwork: Filled " + fill + " Tank: " + this.getTank().getFluidAmount());
needsUpdate = true; if (fill > 0)
NetworkTickHandler.addNetwork(this); {
needsUpdate = true;
NetworkTickHandler.addNetwork(this);
}
return fill; return fill;
} }

View file

@ -30,6 +30,7 @@ public abstract class TileFluidDistribution extends TileFluidNode implements IFl
{ {
super.initiate(); super.initiate();
refresh(); refresh();
getNetwork().reconstruct();
} }
@Override @Override