Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
58535dd1
Commit
58535dd1
authored
Apr 21, 2022
by
Melledy
Browse files
Save config everytime you load so the new options show up
parent
e10bad5b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
58535dd1
...
...
@@ -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
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment