diff options
Diffstat (limited to 'api/logic/minecraft/ProfilePatch.cpp')
-rw-r--r-- | api/logic/minecraft/ProfilePatch.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/api/logic/minecraft/ProfilePatch.cpp b/api/logic/minecraft/ProfilePatch.cpp index 6a90f64b..3ca2ac68 100644 --- a/api/logic/minecraft/ProfilePatch.cpp +++ b/api/logic/minecraft/ProfilePatch.cpp @@ -5,6 +5,7 @@ #include "meta/Version.h" #include "VersionFile.h" +#include "minecraft/MinecraftProfile.h" ProfilePatch::ProfilePatch(std::shared_ptr<Meta::Version> version) :m_metaVersion(version) @@ -23,6 +24,10 @@ void ProfilePatch::applyTo(MinecraftProfile* profile) { vfile->applyTo(profile); } + else + { + profile->applyProblemSeverity(getProblemSeverity()); + } } std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() @@ -35,7 +40,10 @@ std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() } return m_metaVersion->data(); } - return m_file; + else + { + return m_file; + } } std::shared_ptr<class Meta::VersionList> ProfilePatch::getVersionList() |