From 07cde802e4021f6f2592f297b30a2f812dcca796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 14 Apr 2017 12:33:54 +0200 Subject: [PATCH] GH-1853 fix FTB and parsing of old version files --- api/logic/minecraft/ftb/FTBProfileStrategy.cpp | 1 + api/logic/minecraft/onesix/OneSixVersionFormat.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/api/logic/minecraft/ftb/FTBProfileStrategy.cpp b/api/logic/minecraft/ftb/FTBProfileStrategy.cpp index c3d9cc6a1..b017277de 100644 --- a/api/logic/minecraft/ftb/FTBProfileStrategy.cpp +++ b/api/logic/minecraft/ftb/FTBProfileStrategy.cpp @@ -59,6 +59,7 @@ void FTBProfileStrategy::loadDefaultBuiltinPatches() // adapt the loaded file - the FTB patch file format is different than ours. file->minecraftVersion.clear(); + file->mainJar = nullptr; for(auto addLib: file->libraries) { addLib->setHint("local"); diff --git a/api/logic/minecraft/onesix/OneSixVersionFormat.cpp b/api/logic/minecraft/onesix/OneSixVersionFormat.cpp index 267ad888e..c404e96fc 100644 --- a/api/logic/minecraft/onesix/OneSixVersionFormat.cpp +++ b/api/logic/minecraft/onesix/OneSixVersionFormat.cpp @@ -160,6 +160,7 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc { lib->setAbsoluteUrl(URLConstants::getLegacyJarUrl(out->minecraftVersion)); } + out->mainJar = lib; } /* removed features that shouldn't be used */