Browse Source

Recreate save file after load

Lortseam 4 years ago
parent
commit
aaf810ed3e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/java/me/lortseam/completeconfig/io/ConfigSource.java

+ 1 - 0
src/main/java/me/lortseam/completeconfig/io/ConfigSource.java

@@ -61,6 +61,7 @@ public final class ConfigSource {
             if (!root.virtual()) {
             if (!root.virtual()) {
                 config.apply(root);
                 config.apply(root);
             }
             }
+            save(config);
         } catch (ConfigurateException e) {
         } catch (ConfigurateException e) {
             LOGGER.error("[CompleteConfig] Failed to load config from file!", e);
             LOGGER.error("[CompleteConfig] Failed to load config from file!", e);
         }
         }