Skip to content

Commit

Permalink
修复了几个导致无法构建的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSpring114 committed Apr 16, 2024
1 parent 4370657 commit 0794af9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MinecraftLaunch/Classes/Interfaces/IAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace MinecraftLaunch.Classes.Interfaces;
/// <summary>
/// 验证器统一接口
/// </summary>
public interface IAuthenticator<out TAccount> where TAccount : Account {
public interface IAuthenticator<out TAccount> {
/// <summary>
/// 验证方法
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public async ValueTask<MicrosoftAccount> AuthenticateAsync() {

return new MicrosoftAccount {
AccessToken = access_token,
Type = AccountType.Microsoft,
Name = profileNode.GetString("name"),
Uuid = Guid.Parse(profileNode.GetString("id")),
RefreshToken = refreshToken
Expand Down
2 changes: 1 addition & 1 deletion MinecraftLaunch/Extensions/DownloadExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static ValueTask<bool> DownloadResourceEntrysAsync(this
});
}

ResourceDownloader downloader = new(entries, downloadRequest, source);
ResourceDownloader downloader = new(downloadRequest, entries, source);
downloader.ProgressChanged += (sender, args) => {
action(args);
};
Expand Down

0 comments on commit 0794af9

Please sign in to comment.