This commit is contained in:
BruceChen 2022-10-10 10:56:12 +08:00
parent f754f6ab0f
commit 625612909e
4 changed files with 5 additions and 7 deletions

View file

@ -50,11 +50,6 @@ namespace MinecraftClient.WinAPI
{
HttpClient httpClient = new();
try
{
Task<Stream> httpWebRequest = httpClient.GetStreamAsync("https://minotar.net/helm/" + playerName + "/100.png");
httpWebRequest.Wait();
Stream imageStream = httpWebRequest.Result;
try
{
Task<Stream> httpWebRequest = httpClient.GetStreamAsync("https://minotar.net/helm/" + playerName + "/100.png");
httpWebRequest.Wait();