diff options
Diffstat (limited to 'logic/minecraft/MojangVersionFormat.cpp')
-rw-r--r-- | logic/minecraft/MojangVersionFormat.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/logic/minecraft/MojangVersionFormat.cpp b/logic/minecraft/MojangVersionFormat.cpp index e28a38ab..4d6f205b 100644 --- a/logic/minecraft/MojangVersionFormat.cpp +++ b/logic/minecraft/MojangVersionFormat.cpp @@ -63,13 +63,12 @@ VersionFilePtr MojangVersionFormat::versionFileFromJson(const QJsonDocument &doc if (root.contains("libraries")) { - out->shouldOverwriteLibs = true; for (auto libVal : requireArray(root.value("libraries"))) { auto libObj = requireObject(libVal); auto lib = OneSixVersionFormat::libraryFromJson(libObj, filename); - out->overwriteLibs.append(lib); + out->addLibs.append(lib); } } return out; @@ -86,6 +85,10 @@ static QJsonDocument versionFileToJson(VersionFilePtr patch) writeString(root, "assets", patch->assets); writeString(root, "releaseTime", timeToS3Time(patch->m_releaseTime)); writeString(root, "time", timeToS3Time(patch->m_updateTime)); + if(patch->minimumLauncherVersion != -1) + { + root.insert("minimumLauncherVersion", patch->minimumLauncherVersion); + } if (!patch->addLibs.isEmpty()) { |