diff --git a/LauncherModernCore/src/main/java/pro/gravit/launcher/modern/Downloader.java b/LauncherModernCore/src/main/java/pro/gravit/launcher/modern/Downloader.java index 986c50ad..6cecfc9e 100644 --- a/LauncherModernCore/src/main/java/pro/gravit/launcher/modern/Downloader.java +++ b/LauncherModernCore/src/main/java/pro/gravit/launcher/modern/Downloader.java @@ -147,6 +147,11 @@ public CompletableFuture getFuture() { } public CompletableFuture downloadFile(URI uri, Path path) { + try { + IOHelper.createParentDirs(path); + } catch (IOException e) { + return CompletableFuture.failedFuture(e); + } return client.sendAsync(HttpRequest.newBuilder() .GET() .uri(uri)