Skip to content

Commit effc6ea

Browse files
committed
Update RunMap.java
1 parent baebcf2 commit effc6ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/languageserver/requests

de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/languageserver/requests/RunMap.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ private void startGame(WurstGui gui, CompilationResult result) throws Exception
137137
if (!mapDocumentPath.isEmpty()) {
138138
Path path = Paths.get(mapDocumentPath).resolve(cachedMapFile.get().getName());
139139
mapCopy = path.toFile();
140+
mapCopy.mkdirs();
140141
java.nio.file.Files.copy(cachedMapFile.get().toPath(), path, StandardCopyOption.REPLACE_EXISTING);
141142
} else if (w3data.getWc3PatchVersion().isPresent()) {
142143
GameVersion gameVersion = w3data.getWc3PatchVersion().get();

0 commit comments

Comments
 (0)