mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +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);
|
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();
|
worldserver.saveLevel();
|
||||||
|
|
||||||
WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld());
|
WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld());
|
||||||
this.server.getPluginManager().callEvent(event);
|
this.server.getPluginManager().callEvent(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.worlds.get(0).savingDisabled) {
|
|
||||||
this.getServerConfigurationManager().savePlayers();
|
|
||||||
}
|
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user