Skip to content

Commit

Permalink
Fixed exception if config did not exist already
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenni0451 committed Nov 7, 2021
1 parent 1758d71 commit 0bbc66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/lenni0451/spm/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public static PluginManager getInstance() {
public PluginManager() {
instance = this;

this.saveDefaultConfig();
try {
ConfigUpdater.update(this, "config.yml", new File(this.getDataFolder(), "config.yml"), new ArrayList<>());
} catch (Throwable t) {
throw new RuntimeException("Unable to update config to the latest version", t);
}
this.saveDefaultConfig();
I18n.init();

this.pluginUtils = new PluginUtils();
Expand Down

0 comments on commit 0bbc66c

Please sign in to comment.