Skip to content

Commit

Permalink
Stop error attempting to load FAWE config if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Jun 8, 2024
1 parent 5804cd5 commit 8a2f4b6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public static YamlConfiguration loadConfiguration(final File file) {
}

final YamlConfiguration config = new YamlConfiguration();
// Return empty if not exists. On startup we will then create the config, otherwise, we will error :)
if (!file.exists()) {
return config;
}

try {
config.load(file);
Expand Down

0 comments on commit 8a2f4b6

Please sign in to comment.