Fix loading of Minecraft versions from FTB packs

This commit is contained in:
Mrazek, Petr 2014-07-30 06:25:17 -04:00
parent 03b13b0b3f
commit 151fbde8d0

View File

@ -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
{