@@ -164,18 +195,12 @@ public final class Grasscutter {
...
@@ -164,18 +195,12 @@ public final class Grasscutter {
// If the file already exists, we attempt to load it.
// If the file already exists, we attempt to load it.
try(FileReaderfile=newFileReader(configFile)){
try(FileReaderfile=newFileReader(configFile)){
config=gson.fromJson(file,ConfigContainer.class);
config=gson.fromJson(file,ConfigContainer.class);
}
}catch(Exceptionexception){
catch(Exceptionexception){
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.");
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.");