{
int tierfound = 2;
Iterator<IConductor> it = this.getTransmitters().iterator();
while (it.hasNext())
{
IConductor conductor = it.next();
if (conductor == null)
{
it.remove();
continue;
}
TileEntity tile = (TileEntity) conductor;
World world = tile.getWorldObj();
//Remove any conductors in unloaded chunks
if (tile.isInvalid() || world == null || !world.blockExists(tile.xCoord, tile.yCoord, tile.zCoord))
{
it.remove();
continue;
}
if (conductor != world.getTileEntity(tile.xCoord, tile.yCoord, tile.zCoord))
{
it.remove();
continue;
}
if (conductor.getTierGC() < 2)
{
tierfound = 1;
}
if (conductor.getNetwork() != this)
{
conductor.setNetwork(this);
conductor.onNetworkChanged();
}
}
//This will set the network tier to 2 if all the conductors are tier 2
this.networkTierGC = tierfound;