mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 09:46:21 +00:00
Save config everytime you load so the new options show up
This commit is contained in:
parent
dca137a93e
commit
d19d80fa4e
@ -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