mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix archive downloading
This commit is contained in:
parent
658fffbb85
commit
70db76338b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user