Fix loading of Minecraft versions from FTB packs
This commit is contained in:
parent
03b13b0b3f
commit
151fbde8d0
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue