mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix incremental player saving patch
This commit is contained in:
parent
d6e9b7fd8d
commit
89aecf16ad
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ ServerPlayer entityplayer = this.players.get(i);
|
+ ServerPlayer entityplayer = this.players.get(i);
|
||||||
+ if (interval == -1 || now - entityplayer.lastSave >= interval) {
|
+ if (interval == -1 || now - entityplayer.lastSave >= interval) {
|
||||||
+ this.save(entityplayer);
|
+ this.save(entityplayer);
|
||||||
+ if (interval != -1 && ++numSaved <= io.papermc.paper.configuration.GlobalConfiguration.get().playerAutoSave.maxPerTick()) { break; }
|
+ if (interval != -1 && io.papermc.paper.configuration.GlobalConfiguration.get().playerAutoSave.maxPerTick() != -1 && ++numSaved >= io.papermc.paper.configuration.GlobalConfiguration.get().playerAutoSave.maxPerTick()) { break; }
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue