From e775629e1fb605934287c7951c3d078b4f9b0242 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Sun, 14 Dec 2025 00:03:34 +0200 Subject: [PATCH] fix archive detection Signed-off-by: Trial97 --- launcher/InstanceImportTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index 17066fd22..151a8c765 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -138,12 +138,12 @@ void InstanceImportTask::processZipPack() return true; } auto fileName = f->filename(); - if (fileName == "/modrinth.index.json") { + if (fileName == "modrinth.index.json") { // process as Modrinth pack qDebug() << "Modrinth:" << true; m_modpackType = ModpackType::Modrinth; stop = true; - } else if (fileName == "/bin/modpack.jar" || fileName == "/bin/version.json") { + } else if (fileName == "bin/modpack.jar" || fileName == "bin/version.json") { // process as Technic pack qDebug() << "Technic:" << true; extractDir.mkpath("minecraft");