Fix file reference being lost in the config loader

This commit is contained in:
Bernhard Bonigl committed 2016-10-02 12:28:18 +02:00
1 parent 350e356eb4
commit 9d7ae1fe89
2 files changed
+4 -2

No files matched your search

@@ -27,6 +27,8 @@ public abstract class AbstractConfig {
CommentedConfigurationNode node = configFile.load();
T val = node.getValue(TypeToken.of(clazz), configFile);
val.loader = configFile.loader;
val.file = configFile.file;
val.insertDefaults();
configFileList.add(val);