From 6e2ee13da7ffc55a027634d29e5428e8e04699e3 Mon Sep 17 00:00:00 2001 From: Zukero Date: Mon, 12 Feb 2018 14:18:02 +0100 Subject: [PATCH] Fixed issue where worldmap.xml was unduely included in the generated loadresources.xml --- src/com/gpl/rpg/atcontentstudio/model/Project.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/gpl/rpg/atcontentstudio/model/Project.java b/src/com/gpl/rpg/atcontentstudio/model/Project.java index dd01c8f..ea443d3 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/Project.java +++ b/src/com/gpl/rpg/atcontentstudio/model/Project.java @@ -1129,10 +1129,12 @@ public class Project implements ProjectTreeNode, Serializable { tmpMapDir.mkdirs(); writtenFiles = new LinkedList(); for (File createdMapFile : createdContent.gameMaps.mapFolder.listFiles()) { + if (createdMapFile.getName().equalsIgnoreCase("worldmap.xml")) continue; FileUtils.copyFile(createdMapFile, new File(tmpMapDir, createdMapFile.getName())); writtenFiles.add(createdMapFile.getName()); } for (File alteredMapFile : alteredContent.gameMaps.mapFolder.listFiles()) { + if (alteredMapFile.getName().equalsIgnoreCase("worldmap.xml")) continue; FileUtils.copyFile(alteredMapFile, new File(tmpMapDir, alteredMapFile.getName())); writtenFiles.add(alteredMapFile.getName()); }