mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 11:56:57 +03:00
NOISSUE Ignore 'dud' FTB packs
There is no guarantee from modpacks.ch that modpacks contain any versions, which is currently an issue with pack 63 (Direwolf20 1.5).
This commit is contained in:
parent
88d6b6ea3f
commit
7321a4fd3d
1 changed files with 8 additions and 0 deletions
|
|
@ -206,6 +206,14 @@ void ListModel::packRequestFinished()
|
|||
return;
|
||||
}
|
||||
|
||||
// Since there is no guarantee that packs have a version, this will just
|
||||
// ignore those "dud" packs.
|
||||
if (pack.versions.empty())
|
||||
{
|
||||
qWarning() << "FTB Pack " << pack.id << " ignored. reason: lacking any versions";
|
||||
return;
|
||||
}
|
||||
|
||||
beginInsertRows(QModelIndex(), modpacks.size(), modpacks.size());
|
||||
modpacks.append(pack);
|
||||
endInsertRows();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue