summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorMrazek, Petr <petr.mrazek@acision.com>2014-07-30 06:25:17 -0400
committerMrazek, Petr <petr.mrazek@acision.com>2014-07-30 06:25:17 -0400
commit151fbde8d09747001b8d212bee4a1c1154e157a7 (patch)
tree2c130583332095d9415ada122ea25aa0dbc88ad2 /logic
parent03b13b0b3f43e830ca924338b38e1947cd0cc739 (diff)
downloadMultiMC-151fbde8d09747001b8d212bee4a1c1154e157a7.tar
MultiMC-151fbde8d09747001b8d212bee4a1c1154e157a7.tar.gz
MultiMC-151fbde8d09747001b8d212bee4a1c1154e157a7.tar.lz
MultiMC-151fbde8d09747001b8d212bee4a1c1154e157a7.tar.xz
MultiMC-151fbde8d09747001b8d212bee4a1c1154e157a7.zip
Fix loading of Minecraft versions from FTB packs
Diffstat (limited to 'logic')
-rw-r--r--logic/InstanceList.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/logic/InstanceList.cpp b/logic/InstanceList.cpp
index 650f5c80..c5b15215 100644
--- a/logic/InstanceList.cpp
+++ b/logic/InstanceList.cpp
@@ -348,7 +348,14 @@ QSet<FTBRecord> 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
{