Fixed pipe update on load
ya that simple (face palm)
This commit is contained in:
parent
14578b179c
commit
ef6e6fde06
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue