VerboseConfig defaults to true if not set

This commit is contained in:
libraryaddict 2020-03-22 19:46:04 +13:00
parent 7cedac0980
commit 3231b31282
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -462,7 +462,17 @@ public class DisguiseConfig {
}
}
boolean verbose = config.getBoolean("VerboseConfig");
boolean verbose;
if (config.contains("VerboseConfig")) {
verbose = config.getBoolean("VerboseConfig");
} else {
DisguiseUtilities.getLogger()
.info("As 'VerboseConfig' hasn't been set, it is assumed true. Set it in your config to remove " +
"these messages!");
verbose = true;
}
boolean changed = config.getBoolean("ChangedConfig");
if (!verbose) {