This commit is contained in:
Leijurv 2018-10-08 18:08:01 -07:00
parent 0f1edba5f1
commit 413e505683
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -75,6 +75,9 @@ public class SettingsUtil {
if (setting.getName().equals("logger")) { if (setting.getName().equals("logger")) {
continue; // NO continue; // NO
} }
if (setting.value == setting.defaultValue) {
continue;
}
SettingsIO io = map.get(setting.getValueClass()); SettingsIO io = map.get(setting.getValueClass());
if (io == null) { if (io == null) {
throw new IllegalStateException("Missing " + setting.getValueClass() + " " + setting + " " + setting.getName()); throw new IllegalStateException("Missing " + setting.getValueClass() + " " + setting + " " + setting.getName());