/** This function is called to refresh all conductors in this network */ @Override public void refresh() { this.oxygenTiles.clear(); try { Iterator<ITransmitter> it = this.pipes.iterator(); while (it.hasNext()) { ITransmitter transmitter = it.next(); if (transmitter == null) { it.remove(); continue; } transmitter.onNetworkChanged(); if (((TileEntity) transmitter).isInvalid() || ((TileEntity) transmitter).getWorldObj() == null) { it.remove(); continue; } else { transmitter.setNetwork(this); } } } catch (Exception e) { FMLLog.severe("Failed to refresh oxygen pipe network."); e.printStackTrace(); } }