GH-1853 fix FTB and parsing of old version files

This commit is contained in:
Petr Mrázek 2017-04-14 12:33:54 +02:00
parent 2aaf9827a6
commit 07cde802e4
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ void FTBProfileStrategy::loadDefaultBuiltinPatches()
// adapt the loaded file - the FTB patch file format is different than ours.
file->minecraftVersion.clear();
file->mainJar = nullptr;
for(auto addLib: file->libraries)
{
addLib->setHint("local");

View File

@ -160,6 +160,7 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc
{
lib->setAbsoluteUrl(URLConstants::getLegacyJarUrl(out->minecraftVersion));
}
out->mainJar = lib;
}
/* removed features that shouldn't be used */