From 80054e4db26b85f81778f1ac53bd7c123f70fe3c Mon Sep 17 00:00:00 2001 From: flow Date: Fri, 25 Nov 2022 10:19:03 -0300 Subject: [PATCH] fix(ManagedPackPage): preserve pack ID from Modrinth update Signed-off-by: flow --- launcher/ui/pages/instance/ManagedPackPage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/ui/pages/instance/ManagedPackPage.cpp b/launcher/ui/pages/instance/ManagedPackPage.cpp index d8cb93628..0be27ffca 100644 --- a/launcher/ui/pages/instance/ManagedPackPage.cpp +++ b/launcher/ui/pages/instance/ManagedPackPage.cpp @@ -272,7 +272,8 @@ void ModrinthManagedPackPage::update() auto version = m_pack.versions.at(index); QMap extra_info; - extra_info.insert("pack_id", m_pack.id); + // NOTE: Don't use 'm_pack.id' here, since we didn't completely parse all the metadata for the pack, including this field. + extra_info.insert("pack_id", m_inst->getManagedPackID()); extra_info.insert("pack_version_id", version.id); auto extracted = new InstanceImportTask(version.download_url, this, std::move(extra_info));