diff --git a/MinecraftLaunch/Classes/Interfaces/IAuthenticator.cs b/MinecraftLaunch/Classes/Interfaces/IAuthenticator.cs index 4cf5e74..75a492a 100644 --- a/MinecraftLaunch/Classes/Interfaces/IAuthenticator.cs +++ b/MinecraftLaunch/Classes/Interfaces/IAuthenticator.cs @@ -5,7 +5,7 @@ namespace MinecraftLaunch.Classes.Interfaces; /// /// 验证器统一接口 /// -public interface IAuthenticator where TAccount : Account { +public interface IAuthenticator { /// /// 验证方法 /// diff --git a/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs b/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs index 2001ca7..a6d05dc 100644 --- a/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs +++ b/MinecraftLaunch/Components/Authenticator/MicrosoftAuthenticator.cs @@ -134,7 +134,6 @@ public async ValueTask AuthenticateAsync() { return new MicrosoftAccount { AccessToken = access_token, - Type = AccountType.Microsoft, Name = profileNode.GetString("name"), Uuid = Guid.Parse(profileNode.GetString("id")), RefreshToken = refreshToken diff --git a/MinecraftLaunch/Extensions/DownloadExtension.cs b/MinecraftLaunch/Extensions/DownloadExtension.cs index 0ee1a29..9267ae9 100644 --- a/MinecraftLaunch/Extensions/DownloadExtension.cs +++ b/MinecraftLaunch/Extensions/DownloadExtension.cs @@ -77,7 +77,7 @@ public static ValueTask DownloadResourceEntrysAsync(this }); } - ResourceDownloader downloader = new(entries, downloadRequest, source); + ResourceDownloader downloader = new(downloadRequest, entries, source); downloader.ProgressChanged += (sender, args) => { action(args); };