Fixed config loading issues on proxy
This commit is contained in:
1 parent
f15520f6a2
commit
4b7fdd3141
2 files changed
+1
-8
No files matched your search
@@ -58,13 +58,6 @@ abstract class AbstractConfig {
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
readConfig(clazz, null);
|
||||
try {
|
||||
configLoader.save(config);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
protected void readConfig(Class<?> clazz, Object instance) {
|
||||
|
||||
@@ -20,7 +20,7 @@ public final class Config extends AbstractConfig {
|
||||
|
||||
public static void reload(Logger logger) {
|
||||
config = new Config(logger);
|
||||
config.readConfig(Config.class, null);
|
||||
config.readConfig(Config.class, config);
|
||||
}
|
||||
|
||||
public static class LOGGING {
|
||||
|
||||
Reference in new issue
Block a user