Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Remove Incremental Auto Saving (#392)
Browse files Browse the repository at this point in the history
It is not implemented correctly and autosaves every tick if
ticks-per.autosave is over 0 in bukkit.yml
  • Loading branch information
Elier authored Mar 30, 2022
1 parent fd5204e commit e77cc7d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,10 @@ protected void A() throws ExceptionWorldConflict { // CraftBukkit - added throws
this.r.b().a(agameprofile);
}

if (autosavePeriod > 0 /*&& this.ticks % autosavePeriod == 0*/) { // CraftBukkit // Paper - Incremental Auto Saving
if (autosavePeriod > 0 && this.ticks % autosavePeriod == 0) { // CraftBukkit
SpigotTimings.worldSaveTimer.startTiming(); // Spigot
this.methodProfiler.a("save");
//this.playerList.savePlayers();
if (this.ticks % autosavePeriod == 0) this.playerList.savePlayers(); // Paper - Incremental Auto Saving
this.playerList.savePlayers();
// Spigot Start
// We replace this with saving each individual world as this.saveChunks(...) is broken,
// and causes the main thread to sleep for random amounts of time depending on chunk activity
Expand Down

2 comments on commit e77cc7d

@HowardZHY

This comment was marked as off-topic.

@HowardZHY

This comment was marked as off-topic.

Please sign in to comment.