slight network change

This commit is contained in:
DarkGuardsman 2013-07-11 04:40:38 -04:00
parent 7b6ae77fdf
commit 805b632818
4 changed files with 10 additions and 10 deletions

View file

@ -155,7 +155,7 @@ public class BlockTank extends BlockMachine
if (tileEntity instanceof INetworkPart)
{
((INetworkPart) tileEntity).updateNetworkConnections();
((INetworkPart) tileEntity).refresh();
}
}
@ -166,7 +166,7 @@ public class BlockTank extends BlockMachine
if (tileEntity instanceof INetworkPart)
{
((INetworkPart) tileEntity).updateNetworkConnections();
((INetworkPart) tileEntity).refresh();
}
}

View file

@ -56,7 +56,7 @@ public class TileEntityTank extends TileEntityFluidStorage implements IFluidHand
@Override
public void initiate()
{
this.updateNetworkConnections();
this.refresh();
}
@Override
@ -67,7 +67,7 @@ public class TileEntityTank extends TileEntityFluidStorage implements IFluidHand
{
if (ticks % ((int) random.nextInt(5) * 40 + 20) == 0)
{
this.updateNetworkConnections();
this.refresh();
}
}
}
@ -222,7 +222,7 @@ public class TileEntityTank extends TileEntityFluidStorage implements IFluidHand
}
@Override
public void updateNetworkConnections()
public void refresh()
{
if (this.worldObj != null && !this.worldObj.isRemote)

View file

@ -64,7 +64,7 @@ public class BlockPipe extends BlockMachine
if (tileEntity instanceof INetworkPipe)
{
((INetworkPipe) tileEntity).updateNetworkConnections();
((INetworkPipe) tileEntity).refresh();
}
}
@ -75,7 +75,7 @@ public class BlockPipe extends BlockMachine
if (tileEntity instanceof INetworkPipe)
{
((INetworkPipe) tileEntity).updateNetworkConnections();
((INetworkPipe) tileEntity).refresh();
}
}

View file

@ -71,7 +71,7 @@ public class TileEntityPipe extends TileEntityAdvanced implements IFluidHandler,
@Override
public void initiate()
{
this.updateNetworkConnections();
this.refresh();
if (this.subEntities[0] == null)
{
// this.addNewExtention(0, TileEntityPipeWindow.class);
@ -102,7 +102,7 @@ public class TileEntityPipe extends TileEntityAdvanced implements IFluidHandler,
{
if (ticks % ((int) random.nextInt(5) * 40 + 20) == 0)
{
this.updateNetworkConnections();
this.refresh();
}
if (ticks % ((int) random.nextInt(5) * 60 + 20) == 0)
{
@ -466,7 +466,7 @@ public class TileEntityPipe extends TileEntityAdvanced implements IFluidHandler,
}
@Override
public void updateNetworkConnections()
public void refresh()
{
if (this.worldObj != null && !this.worldObj.isRemote)