9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 10:59:16 +00:00

fix ReduceChunkSourceUpdates wording

This commit is contained in:
Taiyou06
2025-07-08 12:47:41 +02:00
parent 4575206917
commit fd3b9a7f33
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
package org.dreeam.leaf.config.modules.misc;
import org.dreeam.leaf.config.ConfigModules;
import org.dreeam.leaf.config.EnumConfigCategory;
public class AsyncCatcherConfig extends ConfigModules {
public String getBasePath() {
return EnumConfigCategory.MISC.getBaseKeyName() + ".async-catcher";
}
public static boolean enabled = true;
@Override
public void onLoaded() {
config.addCommentRegionBased(getBasePath(), """
!!! WARNING !!!
Disabling this is NOT recommended and can lead to severe server instability.
Only disable this if you are an advanced user or debugging a specific issue
and understand the risks involved.""",
"""
!!! 警告 !!!
不建议禁用此功能,因为它可能导致严重的服务器不稳定.
只有当您是正在调试特定问题并了解相关风险的高级用户时,才应禁用此功能.""");
enabled = config.getBoolean(getBasePath() + ".enabled", enabled);
}
}

View File

@@ -25,7 +25,7 @@ public class ReduceChunkSourceUpdates extends ConfigModules {
enabled = config.getBoolean(getBasePath() + ".force-enabled", enabled);
if (config.getBoolean(getBasePath() + ".enabled", enabled)) {
LOGGER.warn("Disabled reduce-chunk-source-updates due to its experimental");
LOGGER.warn("The 'reduce-chunk-source-updates' feature is experimental and has been enabled.");
}
}
}