Skip to content

Commit

Permalink
locations.yml loading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperRonanCraft committed Jun 10, 2024
1 parent 077c557 commit d18bd94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public WorldLocation(String location_name) {
if (section.get("World") != null) {
if (section.get("World").getClass() == String.class) {
world = Bukkit.getWorld(section.get("World").toString());
BetterRTP.debug("- - World: " + world.getName());
if (world != null)
BetterRTP.debug("- - World: " + world.getName());
else
BetterRTP.getInstance().getLogger().warning("Location `" + location_name + "` is declared, but the world " + section.get("World").toString() + " doesn't exist!");
}
}
if (world == null) {
Expand Down

0 comments on commit d18bd94

Please sign in to comment.