From 4dd2faad6776f0360081b5535e41535e72d983fc Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 4 Jan 2025 09:31:52 -0600 Subject: [PATCH] Hide disableUnchangedChunkCheck from the UI --- .../com/seibel/distanthorizons/core/config/Config.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java b/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java index 1f5bc3600..fd5576d69 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java @@ -1243,11 +1243,17 @@ public class Config { public static ConfigEntry disableUnchangedChunkCheck = new ConfigEntry.Builder() .set(false) + // enabling this can be quite detrimental to performance, + // so hiding it in the config file should reduce people accidentally enabling it + .setAppearance(isRunningInDevEnvironment() ? EConfigEntryAppearance.ALL : EConfigEntryAppearance.ONLY_IN_FILE) .comment("" + + "Enabling this will drastically increase chunk processing time\n" + + "and you may need to increase your CPU load to handle it.\n" + + "\n" + "Normally DH will attempt to skip creating LODs for chunks it's already seen\n" + "and that haven't changed.\n" + "\n" - + "However sometimes that logic incorrecly prevents LODs from being updated.\n" + + "However sometimes that logic incorrectly prevents LODs from being updated.\n" + "Disabling this check may fix issues where LODs aren't updated after\n" + "blocks have been changed.\n" + "")