We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9c0d7d + b971004 commit 0cb897eCopy full SHA for 0cb897e
1 file changed
launcher/minecraft/launch/ApplyLibraryOverrides.cpp
@@ -57,8 +57,8 @@ void ApplyLibraryOverrides::onLibraryOverrideDownloadFinished()
57
continue;
58
}
59
60
- auto versionRef = artifactRef.toObject()[library->version()];
61
- if (!versionRef.isObject()) {
+ auto version = artifactRef.toObject().value(library->version());
+ if (!version.isObject()) {
62
63
64
@@ -67,7 +67,7 @@ void ApplyLibraryOverrides::onLibraryOverrideDownloadFinished()
67
68
69
70
- auto override = versionRef.toObject();
+ auto override = version.toObject();
71
auto newDownloadInfo = std::make_shared<MojangDownloadInfo>();
72
newDownloadInfo->url = override["url"].toString();
73
newDownloadInfo->sha1 = override["sha1"].toString();
0 commit comments