Fixed INSTANCE not being assigned
This commit is contained in:
@ -25,7 +25,8 @@ public class ConfigManager {
|
||||
|
||||
public static Config load() {
|
||||
try(FileReader reader = new FileReader(CONFIG_FILE)) {
|
||||
return GSON.fromJson(reader, Config.class);
|
||||
INSTANCE = GSON.fromJson(reader, Config.class);
|
||||
return INSTANCE;
|
||||
} catch (IOException e) {
|
||||
Config config = new Config();
|
||||
save(config);
|
||||
|
Reference in New Issue
Block a user