Skip to content

Commit

Permalink
properly update config version
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jun 27, 2024
1 parent 7b532f0 commit c520964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class Config {
public Config() throws Exception {
// Load config.yml with ConfigMaster
this.config = ConfigFile.loadConfig(new File(AnarchyExploitFixes.getInstance().getDataFolder(), "config.yml"));
config.set("config-version", 1.1);

// Pre-structure to force order
structureConfig();
Expand Down Expand Up @@ -106,7 +107,6 @@ public void saveConfig() {
}

private void structureConfig() {
config.addDefault("config-version", 1.10);
createTitledSection("Language", "language");
createTitledSection("General", "general");
createTitledSection("Miscellaneous", "misc");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class Config {
public Config() throws Exception {
// Load config.yml with ConfigMaster
this.config = ConfigFile.loadConfig(new File(AnarchyExploitFixes.getInstance().getDataFolder(), "config.yml"));
config.set("config-version", 1.1);

// Pre-structure to force order
structureConfig();
Expand Down Expand Up @@ -113,7 +114,6 @@ public void saveConfig() {
}

private void structureConfig() {
config.addDefault("config-version", 1.10);
createTitledSection("Language", "language");
createTitledSection("General", "general");
createTitledSection("Miscellaneous", "misc");
Expand Down

0 comments on commit c520964

Please sign in to comment.