tiny compilation fixes
This commit is contained in:
1 parent
2a9d3909f8
commit
de162c33af
2 files changed
+5
-1
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user