diff --git a/src/main/java/de/hysky/skyblocker/utils/FileUtils.java b/src/main/java/de/hysky/skyblocker/utils/FileUtils.java index 2261144181..9bec27452f 100644 --- a/src/main/java/de/hysky/skyblocker/utils/FileUtils.java +++ b/src/main/java/de/hysky/skyblocker/utils/FileUtils.java @@ -22,6 +22,10 @@ public static void recursiveDelete(Path dir) throws IOException { }); } + if (!Files.isWritable(dir)) { + dir.toFile().setWritable(true); + } + Files.delete(dir); }