From 151fbde8d09747001b8d212bee4a1c1154e157a7 Mon Sep 17 00:00:00 2001 From: "Mrazek, Petr" Date: Wed, 30 Jul 2014 06:25:17 -0400 Subject: [PATCH] Fix loading of Minecraft versions from FTB packs --- logic/InstanceList.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/logic/InstanceList.cpp b/logic/InstanceList.cpp index 650f5c805..c5b15215c 100644 --- a/logic/InstanceList.cpp +++ b/logic/InstanceList.cpp @@ -348,7 +348,14 @@ QSet InstanceList::discoverFTBInstances() versionMatcher[segment[0]] = segment[1]; } auto actualVersion = attrs.value("version").toString(); - record.mcVersion = versionMatcher[actualVersion]; + if(versionMatcher.contains(actualVersion)) + { + record.mcVersion = versionMatcher[actualVersion]; + } + else + { + record.mcVersion = attrs.value("mcVersion").toString(); + } } else {