9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 10:59:16 +00:00

drop ReduceChunkSourceUpdates

This commit is contained in:
Taiyou06
2025-07-08 19:25:23 +02:00
parent fd3b9a7f33
commit ef4ad07976
35 changed files with 1 additions and 32 deletions

View File

@@ -1,31 +0,0 @@
package org.dreeam.leaf.config.modules.opt;
import org.dreeam.leaf.config.ConfigModules;
import org.dreeam.leaf.config.EnumConfigCategory;
import org.dreeam.leaf.config.annotations.Experimental;
public class ReduceChunkSourceUpdates extends ConfigModules {
public String getBasePath() {
return EnumConfigCategory.PERF.getBaseKeyName() + ".reduce-chunk-source-updates";
}
@Experimental
public static boolean enabled = false;
@Override
public void onLoaded() {
config.addCommentRegionBased(getBasePath(), """
*** Experimental Feature ***
Reduces chunk source updates on inter-chunk player moves.""",
"""
*** 实验性功能 ***
减少玩家跨区块移动时的区块源更新."""
);
enabled = config.getBoolean(getBasePath() + ".force-enabled", enabled);
if (config.getBoolean(getBasePath() + ".enabled", enabled)) {
LOGGER.warn("The 'reduce-chunk-source-updates' feature is experimental and has been enabled.");
}
}
}