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()
|
bool ShouldDownload()
|
||||||
{
|
{
|
||||||
var downloader = _dispatcher.Downloader(archive);
|
var downloader = _dispatcher.Downloader(archive);
|
||||||
if (downloader == null ||
|
return downloader is IUrlDownloader && _dispatcher.Matches(archive, mirrorAllowList);
|
||||||
(downloader is not IUrlDownloader && !_dispatcher.Matches(archive, mirrorAllowList)))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShouldDownload() && !archiveManager.HaveArchive(archive.Hash) && archive.State is not Nexus or WabbajackCDN)
|
if (ShouldDownload() && !archiveManager.HaveArchive(archive.Hash) && archive.State is not Nexus or WabbajackCDN)
|
||||||
|
Loading…
Reference in New Issue
Block a user