more logic errors fixed
This commit is contained in:
@@ -80,10 +80,12 @@ public class VoxyClientInstance extends VoxyInstance {
|
|||||||
try {
|
try {
|
||||||
config = Serialization.GSON.fromJson(Files.readString(json), Config.class);
|
config = Serialization.GSON.fromJson(Files.readString(json), Config.class);
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
throw new IllegalStateException("Config deserialization null, reverting to default");
|
Logger.error("Config deserialization null, reverting to default");
|
||||||
}
|
} else {
|
||||||
if (config.sectionStorageConfig == null) {
|
if (config.sectionStorageConfig == null) {
|
||||||
throw new IllegalStateException("Config section storage null, reverting to default");
|
Logger.error("Config section storage null, reverting to default");
|
||||||
|
config = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error("Failed to load the storage configuration file, resetting it to default, this will probably break your save if you used a custom storage config", e);
|
Logger.error("Failed to load the storage configuration file, resetting it to default, this will probably break your save if you used a custom storage config", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user