Skip to content

Commit

Permalink
added a more explicit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0inx authored May 10, 2024
1 parent 0801168 commit d0fe9f8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ public boolean deleteWorld(File path) {
return(path.delete());
}

// When creating the cached world, we specify its name with a path to place it in the data folder.
// For some silly reason, using getDataFolder() results in an illegal character error.
// Same with using File.separator.
// Bukkit's createWorld method requires "/" no matter which platform we're on.
// Which is why we need to code it like this, File.separator and co. aren't enough.
public String getCacheWorldName(World world) {
return "plugins/iridiumskyblock" + "/" + "regenWorlds" + "/" + world.getName() + "_regen";
}
Expand Down

0 comments on commit d0fe9f8

Please sign in to comment.