diff options
author | Mrazek, Petr <petr.mrazek@acision.com> | 2014-07-30 06:25:17 -0400 |
---|---|---|
committer | Mrazek, Petr <petr.mrazek@acision.com> | 2014-07-30 06:25:17 -0400 |
commit | 151fbde8d09747001b8d212bee4a1c1154e157a7 (patch) | |
tree | 2c130583332095d9415ada122ea25aa0dbc88ad2 | |
parent | 03b13b0b3f43e830ca924338b38e1947cd0cc739 (diff) | |
download | MultiMC-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
-rw-r--r-- | logic/InstanceList.cpp | 9 |
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 { |