From 75568ed04b3491e582692278b5bea8419e7b995d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 2 Feb 2023 21:43:01 +0100 Subject: [PATCH] NOISSUE and don't break the thing in the process... --- launcher/InstanceImportTask.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index e1553f06..a90166fa 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -318,6 +318,7 @@ void InstanceImportTask::processModrinth() { if(simplifiedPath.startsWith("../") || simplifiedPath.contains("/../") || fileInfo.isAbsolute()) { throw JSONValidationError("Invalid path found in modpack files:\n\n" + simplifiedPath); } + file.path = simplifiedPath; // env doesn't have to be present, in that case mod is required auto env = Json::ensureObject(obj, "env");