diff --git a/src/io/github/dre2n/dungeonsxl/dungeon/EditWorld.java b/src/io/github/dre2n/dungeonsxl/dungeon/EditWorld.java index f8329ce2..7dd62a4c 100644 --- a/src/io/github/dre2n/dungeonsxl/dungeon/EditWorld.java +++ b/src/io/github/dre2n/dungeonsxl/dungeon/EditWorld.java @@ -87,6 +87,10 @@ public class EditWorld { world.save(); + File dir = new File("DXL_Edit_" + id); + FileUtil.copyDirectory(dir, new File(plugin.getDataFolder(), "/maps/" + mapName)); + FileUtil.deleteUnusedFiles(new File(plugin.getDataFolder(), "/maps/" + mapName)); + try { ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(new File(plugin.getDataFolder(), "/maps/" + mapName + "/DXLData.data"))); out.writeInt(sign.size());