mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 09:47:28 +00:00
Save config everytime you load so the new options show up
This commit is contained in:
parent
e10bad5b17
commit
58535dd1ce
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user