diff --git a/src/main/java/com/WooGLEFX/File/LevelExporter.java b/src/main/java/com/WooGLEFX/File/LevelExporter.java index b22bf61..d14ebf5 100644 --- a/src/main/java/com/WooGLEFX/File/LevelExporter.java +++ b/src/main/java/com/WooGLEFX/File/LevelExporter.java @@ -648,7 +648,12 @@ public static void exportGoomod(File file, WorldLevel level, ArrayList<_Ball> ba try { new ZipUtility().zip(new ArrayList<>(List.of(new File(start + "\\res\\levels\\" + level.getLevelName() + "\\goomod").listFiles())), start + "\\res\\levels\\" + level.getLevelName() + "\\goomod.zip"); - new File(start + "\\res\\levels\\" + level.getLevelName() + "\\goomod.zip").renameTo(file); + File srcGoomod = new File(start + "\\res\\levels\\" + level.getLevelName() + "\\goomod.zip"); + Files.move( + srcGoomod.toPath(), + file.toPath(), + StandardCopyOption.REPLACE_EXISTING + ); } catch (Exception e) { Alarms.errorMessage(e); }