From 00b4258551fd68e515c1b84c892e2479c6f656e6 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Fri, 10 May 2024 16:12:42 -0400 Subject: [PATCH] made the delete world method a lil nicer (ty das) Co-authored-by: Daniel Scherf <35780068+dlsf@users.noreply.github.com> --- .../iridiumskyblock/managers/IslandManager.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java index dac819325..0f20871be 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java +++ b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java @@ -53,17 +53,10 @@ public IslandManager() { } public boolean deleteWorld(File path) { - if(path.exists()) { - File files[] = path.listFiles(); - for(int i=0; i