aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthPackIndex.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-19 17:42:16 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-19 17:42:16 +0300
commit6fd729e285f67c74633d27575717070f3577a132 (patch)
tree7eb4d87e968c3dbec1cd33b2f1290718d181d8a5 /launcher/modplatform/modrinth/ModrinthPackIndex.cpp
parent8ad9692daab303bba6f5337f6660d8437ec8f330 (diff)
downloadPrismLauncher-6fd729e285f67c74633d27575717070f3577a132.tar.gz
PrismLauncher-6fd729e285f67c74633d27575717070f3577a132.tar.bz2
PrismLauncher-6fd729e285f67c74633d27575717070f3577a132.zip
Fixed regresion regarding modrinth project_id in dependence array
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackIndex.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp
index 92b48e5f..b4037349 100644
--- a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp
@@ -144,7 +144,7 @@ auto Modrinth::loadIndexedPackVersion(QJsonObject& obj, QString preferred_hash_t
for (auto d : dependencies) {
auto dep = Json::ensureObject(d);
ModPlatform::Dependency dependency;
- dependency.addonId = Json::requireString(dep, "project_id");
+ dependency.addonId = Json::ensureString(dep, "project_id");
dependency.version = Json::ensureString(dep, "version_id");
auto depType = Json::requireString(dep, "dependency_type");