9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 18:09:17 +00:00

drop ReduceChunkSourceUpdates

This commit is contained in:
Taiyou06
2025-07-08 20:28:58 +02:00
parent a0089ffaa9
commit d041342e8a
37 changed files with 6 additions and 37 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);
boolean oldEnabled = config.getBoolean(getBasePath() + ".enabled", enabled);
if (!enabled && oldEnabled) {
LOGGER.warn("Disabled reduce-chunk-source-updates due to experimentation");
}
}
}