9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-04 15:41:40 +00:00

Move config to datapack section

This commit is contained in:
HaHaWTH
2025-07-14 01:33:35 +14:00
parent 1c63bd73e2
commit 3fe6e77675
2 changed files with 2 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import org.dreeam.leaf.config.annotations.Experimental;
public class CacheExecuteCommandResult extends ConfigModules {
public String getBasePath() {
return EnumConfigCategory.PERF.getBaseKeyName();
return EnumConfigCategory.PERF.getBaseKeyName() + ".datapack";
}
@Experimental

View File

@@ -6,7 +6,7 @@ import org.dreeam.leaf.config.EnumConfigCategory;
public class SkipInactiveEntityForExecute extends ConfigModules {
public String getBasePath() {
return EnumConfigCategory.PERF.getBaseKeyName();
return EnumConfigCategory.PERF.getBaseKeyName() + ".datapack";
}
public static boolean skipInactiveEntityForExecute = false;
@@ -15,11 +15,9 @@ public class SkipInactiveEntityForExecute extends ConfigModules {
public void onLoaded() {
skipInactiveEntityForExecute = config.getBoolean(getBasePath() + ".skip-inactive-entity-for-execute-command", skipInactiveEntityForExecute,
config.pickStringRegionBased("""
*** Experimental Feature ***
Skip selecting inactive entities when using execute command.
Will improve performance on servers with massive datapack functions.""",
"""
*** 实验性功能 ***
execute 命令执行时跳过不活跃实体.
将会提升有大量数据包函数的服务器性能."""));
}