Allow lowercase config keys too

This commit is contained in:
Phoenix616 2018-03-22 18:33:11 +01:00
parent d28e44f377
commit 68ce9d56f6

View File

@ -47,6 +47,8 @@ public class Configuration {
try { try {
if (config.isSet(path)) { if (config.isSet(path)) {
field.set(null, ValueParser.parseToJava(config.get(path))); field.set(null, ValueParser.parseToJava(config.get(path)));
} else if (config.isSet(path.toLowerCase())) {
field.set(null, ValueParser.parseToJava(config.get(path.toLowerCase())));
} else { } else {
if (field.isAnnotationPresent(PrecededBySpace.class)) { if (field.isAnnotationPresent(PrecededBySpace.class)) {
writer.newLine(); writer.newLine();