mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 10:35:15 +01:00
Allow lowercase config keys too
This commit is contained in:
parent
d28e44f377
commit
68ce9d56f6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user