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 e10bad5b17
commit 58535dd1ce

View File

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