Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@
+
+ @Override
+ public int configMinChunkUnloadCount(final ServerLevel world) {
+ return 50;
+ return world.paperConfig().chunks.minChunkUnloadCount;
+ }
+
+ @Override
+ public double configMinChunkUnloadFraction(final ServerLevel world) {
+ return 0.05;
+ return world.paperConfig().chunks.minChunkUnloadFraction;
+ }
+
+ @Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ public class Chunks extends ConfigurationPart {
public AutosavePeriod autoSaveInterval = AutosavePeriod.def();
public int maxAutoSaveChunksPerTick = 24;
public int fixedChunkInhabitedTime = -1;
public int minChunkUnloadCount = 50;
public double minChunkUnloadFraction = 0.05;
public boolean preventMovingIntoUnloadedChunks = false;
public Duration delayChunkUnloadsBy = Duration.of("10s");
public Reference2IntMap<EntityType<?>> entityPerChunkSaveLimit = Util.make(new Reference2IntOpenHashMap<>(BuiltInRegistries.ENTITY_TYPE.size()), map -> {
Expand Down
Loading