Skip to content

Commit

Permalink
Save config everytime you load so the new options show up
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy authored and Melledy committed Apr 21, 2022
1 parent dca137a commit d19d80f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/emu/grasscutter/Grasscutter.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ public static void main(String[] args) throws Exception {
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();
}
}

Expand Down

0 comments on commit d19d80f

Please sign in to comment.