mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-26 23:57:25 +01:00
Fixed issue where worldmap.xml was unduely included in the generated
loadresources.xml
This commit is contained in:
@@ -1129,10 +1129,12 @@ public class Project implements ProjectTreeNode, Serializable {
|
|||||||
tmpMapDir.mkdirs();
|
tmpMapDir.mkdirs();
|
||||||
writtenFiles = new LinkedList<String>();
|
writtenFiles = new LinkedList<String>();
|
||||||
for (File createdMapFile : createdContent.gameMaps.mapFolder.listFiles()) {
|
for (File createdMapFile : createdContent.gameMaps.mapFolder.listFiles()) {
|
||||||
|
if (createdMapFile.getName().equalsIgnoreCase("worldmap.xml")) continue;
|
||||||
FileUtils.copyFile(createdMapFile, new File(tmpMapDir, createdMapFile.getName()));
|
FileUtils.copyFile(createdMapFile, new File(tmpMapDir, createdMapFile.getName()));
|
||||||
writtenFiles.add(createdMapFile.getName());
|
writtenFiles.add(createdMapFile.getName());
|
||||||
}
|
}
|
||||||
for (File alteredMapFile : alteredContent.gameMaps.mapFolder.listFiles()) {
|
for (File alteredMapFile : alteredContent.gameMaps.mapFolder.listFiles()) {
|
||||||
|
if (alteredMapFile.getName().equalsIgnoreCase("worldmap.xml")) continue;
|
||||||
FileUtils.copyFile(alteredMapFile, new File(tmpMapDir, alteredMapFile.getName()));
|
FileUtils.copyFile(alteredMapFile, new File(tmpMapDir, alteredMapFile.getName()));
|
||||||
writtenFiles.add(alteredMapFile.getName());
|
writtenFiles.add(alteredMapFile.getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user