We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed40bb commit 9639832Copy full SHA for 9639832
1 file changed
de.peeeq.wurstscript/src/main/java/de/peeeq/wurstio/languageserver/requests/BuildMap.java
@@ -15,6 +15,7 @@
15
16
import java.io.File;
17
import java.io.IOException;
18
+import java.nio.file.Files;
19
import java.util.List;
20
import java.util.Optional;
21
@@ -66,6 +67,8 @@ public Object execute(ModelManager modelManager) throws IOException {
66
67
68
injectMapData(gui, targetMap, result);
69
70
+ Files.copy(getCachedMapFile().toPath(), targetMap.get().toPath(), java.nio.file.StandardCopyOption.REPLACE_EXISTING);
71
+
72
gui.sendProgress("Finalizing map");
73
74
try (MpqEditor mpq = MpqEditorFactory.getEditor(targetMap)) {
0 commit comments