Update AuthlibInjectorDownloader.java

This commit is contained in:
Tungstend 2024-02-07 15:15:21 +08:00
parent d6aec5b3c4
commit f8b6e66f9c
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class AuthlibInjectorDownloader implements AuthlibInjectorArtifactProvide
}
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"))
.map(checksum -> new FileDownloadTask.IntegrityCheck("SHA-256", checksum))
.orElse(null))