From de3917efcb89ee322f6604c523033ea39c69df59 Mon Sep 17 00:00:00 2001 From: Michael Hillcox Date: Sat, 8 Jun 2024 10:34:00 +0100 Subject: [PATCH] feat: prefer origin url in preference to ch maven but keep ch maven as fallback --- .../creeperlauncher/minecraft/jsons/VersionManifest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprocess/src/main/java/net/creeperhost/creeperlauncher/minecraft/jsons/VersionManifest.java b/subprocess/src/main/java/net/creeperhost/creeperlauncher/minecraft/jsons/VersionManifest.java index df59faa8..45ed50e4 100644 --- a/subprocess/src/main/java/net/creeperhost/creeperlauncher/minecraft/jsons/VersionManifest.java +++ b/subprocess/src/main/java/net/creeperhost/creeperlauncher/minecraft/jsons/VersionManifest.java @@ -392,7 +392,8 @@ private DownloadTask downloadTaskFor(Path librariesDir, LibraryDownload artifact // Build the URL ourselves to use the CH maven instead of the provided 'url' attribute return DownloadTask.builder() - .url(url) + .url(artifact.url) // Prefer the original url but use CH Maven as a fallback + .withMirror(url) .dest(librariesDir.resolve(artifact.path)) .withValidation(validation) .build();