fix Pre-release filter (#4563)

This commit is contained in:
Alexandru Ionut Tripon
2025-12-22 23:45:37 +02:00
committed by GitHub

View File

@@ -126,7 +126,8 @@ ModPlatform::IndexedVersion Modrinth::loadIndexedPackVersion(QJsonObject& obj, Q
return {};
}
for (auto mcVer : versionArray) {
file.mcVersion.append(ModrinthAPI::mapMCVersionFromModrinth(mcVer.toString()));
file.mcVersion.append({ ModrinthAPI::mapMCVersionFromModrinth(mcVer.toString()),
mcVer.toString() }); // double this so we can check both strings when filtering
}
auto loaders = Json::requireArray(obj, "loaders");
for (auto loader : loaders) {