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

@ -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>