Fixed pipe update on load

ya that simple (face palm)
This commit is contained in:
Rseifert 2013-03-26 18:16:30 -04:00
parent 14578b179c
commit ef6e6fde06

View file

@ -51,6 +51,7 @@ public class TileEntityNetworkPipe extends TileEntityAdvanced implements ITankCo
@Override
public void updateEntity()
{
super.updateEntity();
if (worldObj.isRemote && ticks % ((int) random.nextInt(10) * 10 + 1) == 0)
{
this.updateAdjacentConnections();
@ -67,7 +68,7 @@ public class TileEntityNetworkPipe extends TileEntityAdvanced implements ITankCo
@Override
public void invalidate()
{
if (!this.worldObj.isRemote && this.getNetwork() != null)
if (!this.worldObj.isRemote)
{
this.getNetwork().splitNetwork(this);
}