Fix braindead moments
This commit is contained in:
parent
aa2c27bf69
commit
71b1ac9f34
@ -83,7 +83,7 @@ void FlameMod::loadIndexedPackVersions(FlameMod::IndexedPack & pack, QJsonArray
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!valid || !hasFabric){
|
||||
if(!valid && !hasFabric){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -77,11 +77,13 @@ void Modrinth::loadIndexedPackVersions(Modrinth::IndexedPack & pack, QJsonArray
|
||||
break;
|
||||
}
|
||||
auto parent = files[i].toObject();
|
||||
if(parent.contains("url")) {
|
||||
file.downloadUrl = Json::requireString(parent, "url");
|
||||
file.fileName = Json::requireString(parent, "filename");
|
||||
|
||||
unsortedVersions.append(file);
|
||||
}
|
||||
}
|
||||
auto orderSortPredicate = [](const IndexedVersion & a, const IndexedVersion & b) -> bool
|
||||
{
|
||||
//dates are in RFC 3339 format
|
||||
|
Loading…
Reference in New Issue
Block a user