Save config everytime you load so the new options show up

This commit is contained in:
Melledy 2022-04-21 14:44:55 -07:00
parent dca137a93e
commit d19d80fa4e

View File

@ -86,8 +86,10 @@ public final class Grasscutter {
public static void loadConfig() {
try (FileReader file = new FileReader(configFile)) {
config = gson.fromJson(file, Config.class);
saveConfig();
} catch (Exception e) {
Grasscutter.config = new Config(); saveConfig();
Grasscutter.config = new Config();
saveConfig();
}
}