mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix SetPlayerIconAsync
This commit is contained in:
parent
f16b1c118b
commit
a6bb0cb1ac
1 changed files with 10 additions and 0 deletions
|
|
@ -67,6 +67,16 @@ namespace MinecraftClient.WinAPI
|
|||
imageStream.Dispose();
|
||||
httpWebRequest.Dispose();
|
||||
}
|
||||
catch (AggregateException ae)
|
||||
{
|
||||
foreach (var ex in ae.InnerExceptions)
|
||||
{
|
||||
if (ex is HttpRequestException) //Skin not found? Reset to default icon
|
||||
RevertToMCCIcon();
|
||||
else
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
catch (HttpRequestException) //Skin not found? Reset to default icon
|
||||
{
|
||||
RevertToMCCIcon();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue