mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 01:47:42 +01:00
Make periodic chunk saving less aggressive and fixed double player data saving. Fixes BUKKIT-1994 and fixes BUKKIT-2144
This commit is contained in:
parent
05b5a068cb
commit
a133bc7182
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user