Fixed config loading issues on proxy
This commit is contained in:
parent
f15520f6a2
commit
4b7fdd3141
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user