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