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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,11 +77,13 @@ void Modrinth::loadIndexedPackVersions(Modrinth::IndexedPack & pack, QJsonArray
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
auto parent = files[i].toObject();
|
auto parent = files[i].toObject();
|
||||||
|
if(parent.contains("url")) {
|
||||||
file.downloadUrl = Json::requireString(parent, "url");
|
file.downloadUrl = Json::requireString(parent, "url");
|
||||||
file.fileName = Json::requireString(parent, "filename");
|
file.fileName = Json::requireString(parent, "filename");
|
||||||
|
|
||||||
unsortedVersions.append(file);
|
unsortedVersions.append(file);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
auto orderSortPredicate = [](const IndexedVersion & a, const IndexedVersion & b) -> bool
|
auto orderSortPredicate = [](const IndexedVersion & a, const IndexedVersion & b) -> bool
|
||||||
{
|
{
|
||||||
//dates are in RFC 3339 format
|
//dates are in RFC 3339 format
|
||||||
|
Loading…
Reference in New Issue
Block a user