diff options
-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 { |