fix: filter out opted-out mods in mod downloader

Maintains Pre-Updater behaviour

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-06-11 05:38:40 -03:00
parent dfab55112b
commit 9a07ede615
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -64,7 +64,7 @@ FlameModPage::FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance)
auto FlameModPage::validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderTypes loaders) const -> bool
{
Q_UNUSED(loaders);
return ver.mcVersion.contains(mineVer);
return ver.mcVersion.contains(mineVer) && !ver.downloadUrl.isEmpty();
}
// I don't know why, but doing this on the parent class makes it so that