diff options
Diffstat (limited to 'logic/minecraft/MinecraftProfile.cpp')
-rw-r--r-- | logic/minecraft/MinecraftProfile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/minecraft/MinecraftProfile.cpp b/logic/minecraft/MinecraftProfile.cpp index f38f8378..e9ff87d8 100644 --- a/logic/minecraft/MinecraftProfile.cpp +++ b/logic/minecraft/MinecraftProfile.cpp @@ -20,7 +20,6 @@ #include <pathutils.h> #include "minecraft/MinecraftProfile.h" -#include "minecraft/VersionBuilder.h" #include "ProfileUtils.h" #include "NullProfileStrategy.h" @@ -241,7 +240,10 @@ std::shared_ptr<MinecraftProfile> MinecraftProfile::fromJson(const QJsonObject & std::shared_ptr<MinecraftProfile> version(new MinecraftProfile(new NullProfileStrategy())); try { - VersionBuilder::readJsonAndApplyToVersion(version.get(), obj); + version->clear(); + auto file = VersionFile::fromJson(QJsonDocument(obj), QString(), false); + file->applyTo(version.get()); + version->appendPatch(file); } catch(MMCError & err) { |