public static void onServerChanged(MinecraftServer server, WorldInfo worldInfo) { _worldConfigs.clear(); WorldConfig.loadedOptionOverrides[1] = WorldConfig.loadedOptionOverrides[2] = null; _server = server; CustomOreGenBase.log.debug("Server world changed to " + worldInfo.getWorldName()); File f = null; ISaveFormat format = _server.getActiveAnvilConverter(); if (format != null && format instanceof SaveFormatOld) { f = ((SaveFormatOld)format).savesDirectory; } f = new File(f, _server.getFolderName()); WorldConfig config = null; while (config == null) { try { config = new WorldConfig(worldInfo, f); validateOptions(config.getConfigOptions(), false); validateDistributions(config.getOreDistributions(), false); } catch (Exception var7) { if (!onConfigError(var7)) { break; } config = null; } } }
@Override public File getSavesDirectory() { return ((SaveFormatOld) client.getSaveLoader()).savesDirectory; }
@Override public File getSavesDirectory() { return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory; }
@Override public File getSavesDirectory() { return ((SaveFormatOld) client.func_71359_d()).field_75808_a; }
@Override public File getSavesDirectory() { return ((SaveFormatOld) server.func_71254_M()).field_75808_a; }