public static void showOptions(Flipper bot) {
try {
Minecraft.getMinecraft().getIntegratedServer().saveAllWorlds(false);
WorldInfo info = FMLClientHandler.instance().getWorldClient().getWorldInfo();
String saveDir = FMLClientHandler.instance().getSavesDir().getName();
String name = getNewSaveFileLocation();
File srcDir = new File(DimensionManager.getCurrentSaveRootDirectory().getAbsolutePath());
File destDir = new File(saveDir + "/" + name);
FileUtils.copyDirectory(srcDir, destDir);
Minecraft.getMinecraft().launchIntegratedServer(name, name, new WorldSettings(info));
World world = Minecraft.getMinecraft().getIntegratedServer().getEntityWorld();
TileEntity te = world.getTileEntity(bot.getPos());
ITurtleAccess access = ((TileTurtle) te).getAccess();
bot.changeWorld(access, te, world);
} catch (IOException e) {
// e.printStackTrace();
}
}
I am trying to change the current world with code which worked fine in 1.8.9 but now shows a message that the server was shut down (which is true) that interrupts the whole process.