mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Implement config hooks in PaperHooks
This commit is contained in:
@@ -7019,8 +7019,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public void autoSave() {
|
||||
+ final List<NewChunkHolder> reschedule = new ArrayList<>();
|
||||
+ final long currentTick = this.currentTick;
|
||||
+ final long maxSaveTime = currentTick - Math.max(1L, PlatformHooks.get().configAutoSaveInterval());
|
||||
+ final int maxToSave = PlatformHooks.get().configMaxAutoSavePerTick();
|
||||
+ final long maxSaveTime = currentTick - Math.max(1L, PlatformHooks.get().configAutoSaveInterval(this.world));
|
||||
+ final int maxToSave = PlatformHooks.get().configMaxAutoSavePerTick(this.world);
|
||||
+ for (int autoSaved = 0; autoSaved < maxToSave && !this.autoSaveQueue.isEmpty();) {
|
||||
+ final NewChunkHolder holder = this.autoSaveQueue.first();
|
||||
+
|
||||
|
Reference in New Issue
Block a user