Fixed INSTANCE not being assigned

This commit is contained in:
2025-03-25 23:02:19 +01:00
parent 22de60988f
commit 6e15c54b80

View File

@ -25,7 +25,8 @@ public class ConfigManager {
public static Config load() { public static Config load() {
try(FileReader reader = new FileReader(CONFIG_FILE)) { try(FileReader reader = new FileReader(CONFIG_FILE)) {
return GSON.fromJson(reader, Config.class); INSTANCE = GSON.fromJson(reader, Config.class);
return INSTANCE;
} catch (IOException e) { } catch (IOException e) {
Config config = new Config(); Config config = new Config();
save(config); save(config);