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

fix reduce-chunk-source-updates config disappear

This commit is contained in:
hayanesuru
2025-07-08 23:45:54 +09:00
parent ac6e483e8d
commit a0089ffaa9
2 changed files with 2 additions and 1 deletions

View File

@@ -23,7 +23,8 @@ public class ReduceChunkSourceUpdates extends ConfigModules {
减少玩家跨区块移动时的区块源更新."""
);
enabled = config.getBoolean(getBasePath() + ".force-enabled", enabled);
if (!enabled && config.getBoolean(getBasePath() + ".enabled", enabled)) {
boolean oldEnabled = config.getBoolean(getBasePath() + ".enabled", enabled);
if (!enabled && oldEnabled) {
LOGGER.warn("Disabled reduce-chunk-source-updates due to experimentation");
}
}