From c61575d3e247a3b31ff550d6e94dd1f476bfd98c Mon Sep 17 00:00:00 2001 From: Dreytac Date: Wed, 17 Aug 2022 04:11:31 +1000 Subject: [PATCH] Allow zip files as libraries. --- .../main/java/com/skcraft/launcher/builder/PackageBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java b/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java index 914ff3c27..705735c5b 100644 --- a/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java +++ b/launcher-builder/src/main/java/com/skcraft/launcher/builder/PackageBuilder.java @@ -265,7 +265,7 @@ private boolean tryDownloadLibrary(Library library, Library.Artifact artifact, S try { log.info("Downloading library " + library.getName() + " from " + url + "..."); HttpRequest.get(url).execute().expectResponseCode(200) - .expectContentType("application/java-archive", "application/octet-stream") + .expectContentType("application/java-archive", "application/octet-stream", "application/zip") .saveContent(tempFile); } catch (IOException e) { log.info("Could not get file from " + url + ": " + e.getMessage());