Make periodic chunk saving less aggressive and fixed double player data saving. Fixes BUKKIT-1994 and fixes BUKKIT-2144

This commit is contained in:
EvilSeph 2012-08-07 18:52:53 -04:00
parent 05b5a068cb
commit a133bc7182

View File

@ -307,17 +307,13 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
log.info("Saving chunks for level \'" + worldserver.getWorldData().getName() + "\'/" + worldserver.worldProvider);
}
worldserver.save(true, (IProgressUpdate) null);
worldserver.save(false, (IProgressUpdate) null); // Queue chunk saving
worldserver.saveLevel();
WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld());
this.server.getPluginManager().callEvent(event);
}
}
if (!this.worlds.get(0).savingDisabled) {
this.getServerConfigurationManager().savePlayers();
}
// CraftBukkit end
}
}