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) {