Allow lowercase config keys too

This commit is contained in:
Phoenix616 2018-03-22 18:33:11 +01:00
parent d28e44f377
commit 68ce9d56f6
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ public class Configuration {
try {
if (config.isSet(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 {
if (field.isAnnotationPresent(PrecededBySpace.class)) {
writer.newLine();