Stop attempting to read the reduced debug info value in 1.7

Fixes #165.  Reduced debug info was added in 1.8, and isn't found in 1.7.  Since it isn't there in 1.7, the client would crash when it attempts to read it on the join game packet.
This commit is contained in:
Pokechu22 2016-06-20 15:18:27 -07:00
parent 9fc4215924
commit 5456a6e969

View file

@ -250,7 +250,8 @@ namespace MinecraftClient.Protocol.Handlers
readNextByte(packetData); readNextByte(packetData);
readNextByte(packetData); readNextByte(packetData);
readNextString(packetData); readNextString(packetData);
readNextBool(packetData); if (protocolversion >= MC18Version)
readNextBool(packetData); // Reduced debug info - 1.8 and above
break; break;
case PacketIncomingType.ChatMessage: case PacketIncomingType.ChatMessage:
string message = readNextString(packetData); string message = readNextString(packetData);