Fix loading of Minecraft versions from FTB packs
This commit is contained in:
parent
03b13b0b3f
commit
151fbde8d0
@ -348,12 +348,19 @@ QSet<FTBRecord> InstanceList::discoverFTBInstances()
|
|||||||
versionMatcher[segment[0]] = segment[1];
|
versionMatcher[segment[0]] = segment[1];
|
||||||
}
|
}
|
||||||
auto actualVersion = attrs.value("version").toString();
|
auto actualVersion = attrs.value("version").toString();
|
||||||
|
if(versionMatcher.contains(actualVersion))
|
||||||
|
{
|
||||||
record.mcVersion = versionMatcher[actualVersion];
|
record.mcVersion = versionMatcher[actualVersion];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
record.mcVersion = attrs.value("mcVersion").toString();
|
record.mcVersion = attrs.value("mcVersion").toString();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
record.mcVersion = attrs.value("mcVersion").toString();
|
||||||
|
}
|
||||||
record.description = attrs.value("description").toString();
|
record.description = attrs.value("description").toString();
|
||||||
records.insert(record);
|
records.insert(record);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user