diff --git a/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs b/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs index f513d6d..2001ca7 100644 --- a/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs +++ b/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs @@ -6,7 +6,7 @@ namespace MinecraftLaunch.Components.Authenticator; -public sealed class MicrosoftAuthenticator(string clientId, bool isCheckOwnership) : IAuthenticator { +public sealed class MicrosoftAuthenticator(string clientId, bool isCheckOwnership = true) : IAuthenticator { private readonly MicrosoftAccount _account; private readonly string _clientId = clientId; private OAuth2TokenResponse _oAuth2TokenResponse; @@ -21,7 +21,7 @@ public MicrosoftAuthenticator(MicrosoftAccount account, string clientId, bool is public MicrosoftAccount Authenticate() { var task = AuthenticateAsync(); - if (task.IsCompleted) { + if (task is { IsFaulted: false, IsCompleted: true }) { return task.GetAwaiter().GetResult(); } diff --git a/MinecraftLaunch/MinecraftLaunch.csproj b/MinecraftLaunch/MinecraftLaunch.csproj index 1235eb1..50d9531 100644 --- a/MinecraftLaunch/MinecraftLaunch.csproj +++ b/MinecraftLaunch/MinecraftLaunch.csproj @@ -1,6 +1,6 @@  - 3.0.02 + 3.0.03