diff --git a/src/main/java/com/github/chainmailstudios/astromine/registry/AstromineConfig.java b/src/main/java/com/github/chainmailstudios/astromine/registry/AstromineConfig.java index 1f1de62fc..ec7314d31 100644 --- a/src/main/java/com/github/chainmailstudios/astromine/registry/AstromineConfig.java +++ b/src/main/java/com/github/chainmailstudios/astromine/registry/AstromineConfig.java @@ -26,6 +26,7 @@ import me.sargunvohra.mcmods.autoconfig1u.AutoConfig; import me.sargunvohra.mcmods.autoconfig1u.ConfigData; +import me.sargunvohra.mcmods.autoconfig1u.ConfigManager; import me.sargunvohra.mcmods.autoconfig1u.annotation.Config; import me.sargunvohra.mcmods.autoconfig1u.annotation.ConfigEntry; import me.sargunvohra.mcmods.autoconfig1u.serializer.JanksonConfigSerializer; @@ -619,5 +620,10 @@ public static AstromineConfig get() { public static void initialize() { AutoConfig.register(AstromineConfig.class, JanksonConfigSerializer::new); + try { + ((ConfigManager) AutoConfig.getConfigHolder(AstromineConfig.class)).save(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + } } }