From f36bffa4b799fabade4a6be2f2652f0442826a53 Mon Sep 17 00:00:00 2001 From: s809 <43530948+s809@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:32:50 +0500 Subject: [PATCH] Add missing config entries in chat commands --- .../distanthorizons/core/config/Config.java | 16 +++++++++++++++- 1 file changed, 15 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 15d254785..c9fa0536c 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 @@ -582,7 +582,7 @@ public class Config .comment("" + "How bright LOD colors are. \n" + "\n" - + "0 = black \n" + + "0 = black \n"f + "1 = normal \n" + "2 = near white") .build(); @@ -893,6 +893,7 @@ public class Config public static final ConfigEntry numberOfWorldGenerationThreads = new ConfigEntry.Builder() + .setServersideShortName("numberOfWorldGenerationThreads") .setMinDefaultMax(1, ThreadPresetConfigEventHandler.getWorldGenDefaultThreadCount(), Runtime.getRuntime().availableProcessors()) @@ -908,11 +909,13 @@ public class Config + THREAD_NOTE) .build(); public static final ConfigEntry runTimeRatioForWorldGenerationThreads = new ConfigEntry.Builder() + .setServersideShortName("runTimeRatioForWorldGenerationThreads") .setMinDefaultMax(0.01, ThreadPresetConfigEventHandler.getWorldGenDefaultRunTimeRatio(), 1.0) .comment(THREAD_RUN_TIME_RATIO_NOTE) .build(); public static final ConfigEntry numberOfFileHandlerThreads = new ConfigEntry.Builder() + .setServersideShortName("numberOfFileHandlerThreads") .setMinDefaultMax(1, ThreadPresetConfigEventHandler.getFileHandlerDefaultThreadCount(), Runtime.getRuntime().availableProcessors()) @@ -926,11 +929,13 @@ public class Config + THREAD_NOTE) .build(); public static final ConfigEntry runTimeRatioForFileHandlerThreads = new ConfigEntry.Builder() + .setServersideShortName("runTimeRatioForFileHandlerThreads") .setMinDefaultMax(0.01, ThreadPresetConfigEventHandler.getFileHandlerDefaultRunTimeRatio(), 1.0) .comment(THREAD_RUN_TIME_RATIO_NOTE) .build(); public static final ConfigEntry numberOfLodBuilderThreads = new ConfigEntry.Builder() + .setServersideShortName("numberOfLodBuilderThreads") .setMinDefaultMax(1, ThreadPresetConfigEventHandler.getLodBuilderDefaultThreadCount(), Runtime.getRuntime().availableProcessors()) @@ -943,10 +948,12 @@ public class Config + THREAD_NOTE) .build(); public static final ConfigEntry runTimeRatioForLodBuilderThreads = new ConfigEntry.Builder() + .setServersideShortName("runTimeRatioForLodBuilderThreads") .setMinDefaultMax(0.01, ThreadPresetConfigEventHandler.getLodBuilderDefaultRunTimeRatio(), 1.0) .comment(THREAD_RUN_TIME_RATIO_NOTE) .build(); public static final ConfigEntry enableLodBuilderThreadLimiting = new ConfigEntry.Builder() + .setServersideShortName("enableLodBuilderThreadLimiting") .set(true) .comment("" + "Should only be disabled if deadlock occurs and LODs refuse to update. \n" @@ -1054,6 +1061,7 @@ public class Config // TODO add change all option // TODO default to error chat and info file public static ConfigEntry logWorldGenEvent = new ConfigEntry.Builder() + .setServersideShortName("logWorldGenEvent") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_FILE) .comment("" + "If enabled, the mod will log information about the world generation process. \n" @@ -1061,6 +1069,7 @@ public class Config .build(); public static ConfigEntry logWorldGenPerformance = new ConfigEntry.Builder() + .setServersideShortName("logWorldGenPerformance") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_FILE) .comment("" + "If enabled, the mod will log performance about the world generation process. \n" @@ -1068,6 +1077,7 @@ public class Config .build(); public static ConfigEntry logWorldGenLoadEvent = new ConfigEntry.Builder() + .setServersideShortName("logWorldGenPerformance") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_FILE) .comment("" + "If enabled, the mod will log information about the world generation process. \n" @@ -1075,6 +1085,7 @@ public class Config .build(); public static ConfigEntry logLodBuilderEvent = new ConfigEntry.Builder() + .setServersideShortName("logLodBuilderEvent") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_INFO_TO_FILE) .comment("" + "If enabled, the mod will log information about the LOD generation process. \n" @@ -1096,6 +1107,7 @@ public class Config .build(); public static ConfigEntry logFileReadWriteEvent = new ConfigEntry.Builder() + .setServersideShortName("logFileReadWriteEvent") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_INFO_TO_FILE) .comment("" + "If enabled, the mod will log information about file read/write operations. \n" @@ -1103,6 +1115,7 @@ public class Config .build(); public static ConfigEntry logFileSubDimEvent = new ConfigEntry.Builder() + .setServersideShortName("logFileSubDimEvent") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_INFO_TO_FILE) .comment("" + "If enabled, the mod will log information about file sub-dimension operations. \n" @@ -1110,6 +1123,7 @@ public class Config .build(); public static ConfigEntry logNetworkEvent = new ConfigEntry.Builder() + .setServersideShortName("logNetworkEvent") .set(ELoggerMode.LOG_WARNING_TO_CHAT_AND_INFO_TO_FILE) .comment("" + "If enabled, the mod will log information about network operations. \n"