mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 13:57:35 +01:00
Add unload-frozen-chunks option
By: md_5 <git@md-5.net>
This commit is contained in:
parent
479ce445d6
commit
9940174241
@ -106,8 +106,9 @@
|
|||||||
ProfilerFiller gameprofilerfiller = Profiler.get();
|
ProfilerFiller gameprofilerfiller = Profiler.get();
|
||||||
|
|
||||||
gameprofilerfiller.push("purge");
|
gameprofilerfiller.push("purge");
|
||||||
|
- if (this.level.tickRateManager().runsNormally() || !tickChunks) {
|
||||||
+ this.level.timings.doChunkMap.startTiming(); // Spigot
|
+ this.level.timings.doChunkMap.startTiming(); // Spigot
|
||||||
if (this.level.tickRateManager().runsNormally() || !tickChunks) {
|
+ if (this.level.tickRateManager().runsNormally() || !tickChunks || this.level.spigotConfig.unloadFrozenChunks) { // Spigot
|
||||||
this.distanceManager.purgeStaleTickets();
|
this.distanceManager.purgeStaleTickets();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,4 +393,9 @@ public class SpigotWorldConfig
|
|||||||
private void belowZeroGenerationInExistingChunks() {
|
private void belowZeroGenerationInExistingChunks() {
|
||||||
this.belowZeroGenerationInExistingChunks = this.getBoolean("below-zero-generation-in-existing-chunks", true);
|
this.belowZeroGenerationInExistingChunks = this.getBoolean("below-zero-generation-in-existing-chunks", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean unloadFrozenChunks;
|
||||||
|
private void unloadFrozenChunks() {
|
||||||
|
this.unloadFrozenChunks = this.getBoolean("unload-frozen-chunks", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user