public void update(){
//Log.info("sides connected " + world().isRemote + ": " + Arrays.toString(sidesConnected));
if(Config.convertMultipartsToBlocks && !world().isRemote) {
Log.info("Converting Pressure Tube part to Pressure Tube block at " + x() + ", " + y() + ", " + z());
world().setBlock(x(), y(), z(), Block.getBlockFromItem(getItem().getItem()));
TileEntityPressureTube tube = (TileEntityPressureTube)world().getTileEntity(x(), y(), z());
for(PartTubeModule module : FMP.getMultiParts(tile(), PartTubeModule.class)) {
tube.setModule(module.getModule(), module.getModule().getDirection());
tube.updateConnections(world(), x(), y(), z());
world().notifyBlocksOfNeighborChange(x(), y(), z(), Blockss.pressureTube, module.getModule().getDirection().getOpposite().ordinal());
}
return;
}
if(convertedModules != null && !world().isRemote) {//when we convert a tube block to a tube part, look for attached modules.