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,12 +348,19 @@ QSet<FTBRecord> InstanceList::discoverFTBInstances()
versionMatcher[segment[0]] = segment[1];
}
auto actualVersion = attrs.value("version").toString();
if(versionMatcher.contains(actualVersion))
{
record.mcVersion = versionMatcher[actualVersion];
}
else
{
record.mcVersion = attrs.value("mcVersion").toString();
}
}
else
{
record.mcVersion = attrs.value("mcVersion").toString();
}
record.description = attrs.value("description").toString();
records.insert(record);
}