Archiviert
13
0

Re-add support for full chunk saving so the server save-alls on stop. Fixes BUKKIT-2158

Dieser Commit ist enthalten in:
EvilSeph 2012-08-08 03:08:46 -04:00
Ursprung a133bc7182
Commit 24809ef986

Datei anzeigen

@ -305,9 +305,11 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
if (worldserver != null) {
if (!flag) {
log.info("Saving chunks for level \'" + worldserver.getWorldData().getName() + "\'/" + worldserver.worldProvider);
worldserver.save(true, (IProgressUpdate) null); // Perform a full save
} else {
worldserver.save(false, (IProgressUpdate) null); // Queue chunk saving
}
worldserver.save(false, (IProgressUpdate) null); // Queue chunk saving
worldserver.saveLevel();
WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld());