Removed print line from network classes
This commit is contained in:
parent
8213d6e80b
commit
29d9f58213
2 changed files with 2 additions and 6 deletions
|
@ -29,8 +29,8 @@ public class PipeNetwork extends FluidNetwork
|
||||||
public void update()
|
public void update()
|
||||||
{
|
{
|
||||||
super.update();
|
super.update();
|
||||||
//Slight delay to allow visual effect to take place before draining the pipe tanks
|
//Slight delay to allow visual effect to take place before draining the pipe's internal tank
|
||||||
if (this.ticks % 2 == 0 && this.getTank().getFluid() != null)
|
if (this.ticks % 2 == 0 && this.getTank().getFluidAmount() > 0)
|
||||||
{
|
{
|
||||||
FluidStack stack = this.getTank().getFluid().copy();
|
FluidStack stack = this.getTank().getFluid().copy();
|
||||||
int count = this.connectionMap.size();
|
int count = this.connectionMap.size();
|
||||||
|
|
|
@ -8,7 +8,6 @@ import net.minecraftforge.fluids.FluidStack;
|
||||||
import resonantinduction.api.fluid.IFluidPart;
|
import resonantinduction.api.fluid.IFluidPart;
|
||||||
import resonantinduction.mechanical.fluid.network.FluidNetwork;
|
import resonantinduction.mechanical.fluid.network.FluidNetwork;
|
||||||
import universalelectricity.core.net.NetworkTickHandler;
|
import universalelectricity.core.net.NetworkTickHandler;
|
||||||
import calclavia.lib.utility.FluidUtility;
|
|
||||||
|
|
||||||
/** Network that handles connected tanks
|
/** Network that handles connected tanks
|
||||||
*
|
*
|
||||||
|
@ -23,13 +22,11 @@ public class TankNetwork extends FluidNetwork
|
||||||
@Override
|
@Override
|
||||||
public void reloadTanks()
|
public void reloadTanks()
|
||||||
{
|
{
|
||||||
System.out.println("TankNetwork: Balancing fluid");
|
|
||||||
FluidStack fillStack = this.getTank().getFluid();
|
FluidStack fillStack = this.getTank().getFluid();
|
||||||
int lowestY = 255, highestY = 0;
|
int lowestY = 255, highestY = 0;
|
||||||
|
|
||||||
if (fillStack == null || fillStack.getFluid().isGaseous())
|
if (fillStack == null || fillStack.getFluid().isGaseous())
|
||||||
{
|
{
|
||||||
System.out.println("TankNetwork: Stack is null or a gas");
|
|
||||||
super.reloadTanks();
|
super.reloadTanks();
|
||||||
}
|
}
|
||||||
else if (this.getConnectors().size() > 0)
|
else if (this.getConnectors().size() > 0)
|
||||||
|
@ -62,7 +59,6 @@ public class TankNetwork extends FluidNetwork
|
||||||
}
|
}
|
||||||
if (!parts.isEmpty())
|
if (!parts.isEmpty())
|
||||||
{
|
{
|
||||||
System.out.println("TankNetwork: balancing level: " + y);
|
|
||||||
this.fillTankSet(fillStack, parts);
|
this.fillTankSet(fillStack, parts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue