mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Ignore invalid UUIDs for tab-list
If the server is sending invalid UUIDs, use an empty UUID instead
This commit is contained in:
parent
834e446a74
commit
93d58a8d81
1 changed files with 8 additions and 1 deletions
|
|
@ -282,7 +282,14 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
|
|
||||||
private Guid readNextUUID(ref byte[] cache)
|
private Guid readNextUUID(ref byte[] cache)
|
||||||
{
|
{
|
||||||
return new Guid(readData(16, ref cache));
|
try
|
||||||
|
{
|
||||||
|
return new Guid(readData(16, ref cache));
|
||||||
|
}
|
||||||
|
catch (ArgumentException)
|
||||||
|
{
|
||||||
|
return Guid.Empty;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue