Skip to content

Commit f6323fd

Browse files
committed
Update RunMap.java
1 parent 8551701 commit f6323fd

File tree

1 file changed

+1
-1
lines changed
  • de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/languageserver/requests

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)