diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java b/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java index 8285a1fe4..246fa161b 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java @@ -1,5 +1,8 @@ package com.seibel.lod.common.wrappers.gui; +import com.seibel.lod.core.config.eventHandlers.QuickRenderToggleConfigEventHandler; +import com.seibel.lod.core.config.eventHandlers.presets.RenderQualityPresetConfigEventHandler; +import com.seibel.lod.core.config.eventHandlers.presets.ThreadPresetConfigEventHandler; import com.seibel.lod.coreapi.ModInfo; import com.seibel.lod.core.config.ConfigBase; import com.seibel.lod.core.config.gui.ConfigScreen; @@ -24,8 +27,9 @@ public class GetConfigScreen // Generate the language // This shouldn't be here, but I need a way to test it after Minecraft inits its assets //System.out.println(ConfigBase.INSTANCE.generateLang(false, true)); - - + + runGuiOnlyConfigSetup(); + return switch (useScreen) { case Classic -> ClassicConfigGUI.getScreen(ConfigBase.INSTANCE, parent, "client"); @@ -35,4 +39,16 @@ public class GetConfigScreen default -> null; }; } + + /** + * Updates any config values that are UI only + * and adds any listeners that depend on multiple config values. + */ + private static void runGuiOnlyConfigSetup() + { + ThreadPresetConfigEventHandler.INSTANCE.setUiOnlyConfigValues(); + RenderQualityPresetConfigEventHandler.INSTANCE.setUiOnlyConfigValues(); + QuickRenderToggleConfigEventHandler.INSTANCE.setUiOnlyConfigValues(); + } + } \ No newline at end of file diff --git a/coreSubProjects b/coreSubProjects index 12d5d9e32..24a335565 160000 --- a/coreSubProjects +++ b/coreSubProjects @@ -1 +1 @@ -Subproject commit 12d5d9e32bfed8b38443ea33e1b3eb4c3114f405 +Subproject commit 24a335565ef5d225d1086bfb5c8cf36f7259cfb7