Skip to content

Commit baebcf2

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

1 file changed

Lines changed: 2 additions & 2 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ private void startGame(WurstGui gui, CompilationResult result) throws Exception
135135

136136
String mapDocumentPath = langServer.getConfigProvider().getConfig("mapDocumentPath", "");
137137
if (!mapDocumentPath.isEmpty()) {
138-
Path path = Paths.get(mapDocumentPath);
138+
Path path = Paths.get(mapDocumentPath).resolve(cachedMapFile.get().getName());
139139
mapCopy = path.toFile();
140-
java.nio.file.Files.copy(cachedMapFile.get().toPath(), path.resolve(cachedMapFile.get().getName()), StandardCopyOption.REPLACE_EXISTING);
140+
java.nio.file.Files.copy(cachedMapFile.get().toPath(), path, 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)