From c56cd4563989633bfb8e7c74a1e2b2a8a03f36d4 Mon Sep 17 00:00:00 2001 From: sylv256 Date: Thu, 24 Sep 2026 12:26:11 -0400 Subject: [PATCH] fix: don't reset config files to default on startup --- .../lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java b/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java index 204312a..c10bb01 100644 --- a/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java +++ b/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java @@ -312,13 +312,15 @@ public class GreenhouseConfigImpl { .computeIfAbsent(holder, _ -> new GreenhouseConfigLangExecutor<>(lang)); Config config = dataFixConfig(holder, lang, executor); - if (config != null) { + + // Load the config if it wasn't data-fixed. + if (config == null) { config = loadConfigInternal(holder, lang, executor); } CURRENTLY_LOADING.remove(); - // Save default config if config is null. + // Save default config if config is missing. if (config == null) { config = holder.getDefaultValue().get(); CONFIGS_TO_SAVE.add(holder); -- 2.51.2