Ignore invalid UUIDs for tab-list

If the server is sending invalid UUIDs, use an empty UUID instead
This commit is contained in:
ORelio 2015-05-17 21:10:01 +02:00
parent 834e446a74
commit 93d58a8d81

View file

@ -281,9 +281,16 @@ namespace MinecraftClient.Protocol.Handlers
/// <returns>The uuid</returns>
private Guid readNextUUID(ref byte[] cache)
{
try
{
return new Guid(readData(16, ref cache));
}
catch (ArgumentException)
{
return Guid.Empty;
}
}
/// <summary>
/// Read a byte array from a cache of bytes and remove it from the cache