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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user