Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Aug 3, 2020
1 parent e1ef302 commit 21ca3b8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -619,5 +620,10 @@ public static AstromineConfig get() {

public static void initialize() {
AutoConfig.register(AstromineConfig.class, JanksonConfigSerializer::new);
try {
((ConfigManager<AstromineConfig>) AutoConfig.getConfigHolder(AstromineConfig.class)).save();
} catch (Throwable throwable) {
throwable.printStackTrace();
}
}
}

0 comments on commit 21ca3b8

Please sign in to comment.