mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 20:52:12 -07:00
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user