Skip to content

Commit

Permalink
Update YamlStorage.java
Browse files Browse the repository at this point in the history
  • Loading branch information
CreaxxOG authored Feb 12, 2024
1 parent 9b2571b commit 751d924
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/xyz/refinedev/api/storage/YamlStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ public YamlStorage(JavaPlugin plugin, String dataFolder, String name) {
}

try {
if (saveResource) {
this.config.load(file);
} else {
this.config.load();
}
this.config.load();
} catch (IOException ex) {
LOGGER.error("[Storage] Could not load " + name + ".yml, please correct your syntax errors!");
LOGGER.error("[Storage] Error: " + ex.getMessage());
Expand Down

0 comments on commit 751d924

Please sign in to comment.