Merge branch 'master' into brucechen-toml-config

This commit is contained in:
BruceChen 2022-10-10 10:54:39 +08:00 committed by GitHub
commit f754f6ab0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 85 additions and 3 deletions

View file

@ -50,6 +50,11 @@ 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();