fix archive downloading

This commit is contained in:
Timothy Baldridge 2021-12-17 10:49:09 -07:00
parent 658fffbb85
commit 70db76338b

View File

@ -543,13 +543,7 @@ public class ValidateLists : IVerb
bool ShouldDownload()
{
var downloader = _dispatcher.Downloader(archive);
if (downloader == null ||
(downloader is not IUrlDownloader && !_dispatcher.Matches(archive, mirrorAllowList)))
{
return true;
}
return false;
return downloader is IUrlDownloader && _dispatcher.Matches(archive, mirrorAllowList);
}
if (ShouldDownload() && !archiveManager.HaveArchive(archive.Hash) && archive.State is not Nexus or WabbajackCDN)