getLogger().error("There was an error while trying to load the configuration from config.json. Please make sure that there are no syntax errors. If you want to start with a default configuration, delete your existing config.json.");
System.exit(1);
...
...
@@ -218,7 +218,7 @@ public final class Grasscutter {
if(config==null)config=newConfigContainer();
try(FileWriterfile=newFileWriter(configFile)){
file.write(Utils.jsonEncode(config));
file.write(JsonUtils.encode(config));
}catch(IOExceptionignored){
Grasscutter.getLogger().error("Unable to write to config file.");
}catch(Exceptione){
...
...
@@ -272,7 +272,7 @@ public final class Grasscutter {