Skip to content

Commit

Permalink
Synchronizing maps throws an exception when there is no maps director…
Browse files Browse the repository at this point in the history
…y in the project root;incorporated review comments
  • Loading branch information
“SushmitaGoswami” authored and nightm4re94 committed Sep 13, 2024
1 parent e782f1b commit 67b1fc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Paths;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
Expand Down Expand Up @@ -820,7 +820,7 @@ private void saveMaps() {
if (preferences().syncMaps()) {
for (String file : FileUtilities.findFilesByExtension(
new ArrayList<>(),
Paths.get(Resources.getLocation("maps").getPath()),
Path.of(Resources.getLocation("maps").getPath()),
map.getName() + "." + TmxMap.FILE_EXTENSION)) {
File newFile = XmlUtilities.save(map, file, TmxMap.FILE_EXTENSION);
log.log(Level.INFO, "synchronized map {0}", new Object[] {newFile});
Expand Down

0 comments on commit 67b1fc1

Please sign in to comment.