Selaa lähdekoodia

Recreate save file after load

Lortseam 4 vuotta sitten
vanhempi
sitoutus
aaf810ed3e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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()) {
                 config.apply(root);
             }
+            save(config);
         } catch (ConfigurateException e) {
             LOGGER.error("[CompleteConfig] Failed to load config from file!", e);
         }