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