From 21ca3b881e51d72f25ba2dd78cdcc1e21012b737 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 4 Aug 2020 02:59:54 +0800 Subject: [PATCH] save --- .../astromine/registry/AstromineConfig.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); + } } }