mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 22:37:06 -04:00
parent
c7f3f2a229
commit
bc4aa43834
@ -97,7 +97,7 @@ public class AuthlibInjectorDownloader implements AuthlibInjectorArtifactProvide
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new FileDownloadTask(new URL(downloadProvider.get().injectURL(latest.downloadUrl)), artifactLocation.toFile(),
|
new FileDownloadTask(downloadProvider.get().injectURLWithCandidates(latest.downloadUrl), artifactLocation.toFile(),
|
||||||
Optional.ofNullable(latest.checksums.get("sha256"))
|
Optional.ofNullable(latest.checksums.get("sha256"))
|
||||||
.map(checksum -> new IntegrityCheck("SHA-256", checksum))
|
.map(checksum -> new IntegrityCheck("SHA-256", checksum))
|
||||||
.orElse(null))
|
.orElse(null))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user