Skip to content

Commit

Permalink
Fixed file not found error.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed May 22, 2024
1 parent e261dc1 commit 4533686
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/lewmc/kryptonite/optimiser/Optimiser.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.InvalidConfigurationException;

import java.io.File;
import java.io.IOException;
import java.util.Objects;

Expand All @@ -25,7 +24,7 @@ public void runDefault(boolean pregeneratedWorld) {
this.message.Info("Running Vanilla optimisations");

try {
this.plugin.getConfig().load(new File("plugins/kryptonite/config.yml"));
this.plugin.getConfig().load("plugins/Kryptonite/config.yml");
} catch (IOException | InvalidConfigurationException e) {
this.message.Error("Unable to open configuration, see console for more information.");
this.message.Error("Kryptonite Optimisation System Aborted.");
Expand Down

0 comments on commit 4533686

Please sign in to comment.