Fixed config loading issues on proxy

This commit is contained in:
Teriuihi 2023-07-18 00:43:16 +02:00
parent f15520f6a2
commit 4b7fdd3141
2 changed files with 1 additions and 8 deletions

View File

@ -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) {

View File

@ -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 {