From de162c33af45798cd7233354ffe145a2b26ac832 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Sun, 22 May 2022 12:21:16 +0700 Subject: [PATCH] tiny compilation fixes --- Natives/MinecraftDownloader.m | 2 +- Natives/authenticator/BaseAuthenticator.m | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Natives/MinecraftDownloader.m b/Natives/MinecraftDownloader.m index 0a77ca3c..efe8e1f3 100644 --- a/Natives/MinecraftDownloader.m +++ b/Natives/MinecraftDownloader.m @@ -349,7 +349,7 @@ static AFURLSessionManager* manager; * Since 1.19-pre1, setting the window icon on macOS goes through ObjC. * However, if an IOException occurrs, it won't try to set. * We skip downloading the icon file to trigger this. */ - if ([name isEqualToString:@"icons/minecraft.icns") continue; + if ([name isEqualToString:@"icons/minecraft.icns"]) continue; --jobsAvailable; dispatch_group_enter(group); diff --git a/Natives/authenticator/BaseAuthenticator.m b/Natives/authenticator/BaseAuthenticator.m index 033fc7a8..93345015 100644 --- a/Natives/authenticator/BaseAuthenticator.m +++ b/Natives/authenticator/BaseAuthenticator.m @@ -10,6 +10,10 @@ static BaseAuthenticator *current = nil; return current; } ++ (void)setCurrent:(BaseAuthenticator *)auth { + current = auth; +} + + (id)loadSavedName:(NSString *)name { NSMutableDictionary *authData = parseJSONFromFile([NSString stringWithFormat:@"%s/accounts/%@.json", getenv("POJAV_HOME"), name]); if (authData[@"error"] != nil) {