diff --git a/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java b/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java index 4f35b0de6..e447ef031 100644 --- a/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java +++ b/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java @@ -39,6 +39,7 @@ import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; +import java.nio.file.StandardCopyOption; import java.util.*; import java.util.logging.Level; @@ -298,7 +299,7 @@ protected void installLibraries(@NonNull Installer installer, // Use our embedded replacement Path tempFile = installer.getTempDir().toPath().resolve(file.getId()); - Files.copy(embeddedConfig, tempFile); + Files.copy(embeddedConfig, tempFile, StandardCopyOption.REPLACE_EXISTING); log.info("Substituting embedded logging config " + file.getId()); installer.queue(new FileMover(tempFile.toFile(), targetFile));