mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
9fc4215924
commit
5456a6e969
1 changed files with 2 additions and 1 deletions
|
|
@ -250,7 +250,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
readNextByte(packetData);
|
||||
readNextByte(packetData);
|
||||
readNextString(packetData);
|
||||
readNextBool(packetData);
|
||||
if (protocolversion >= MC18Version)
|
||||
readNextBool(packetData); // Reduced debug info - 1.8 and above
|
||||
break;
|
||||
case PacketIncomingType.ChatMessage:
|
||||
string message = readNextString(packetData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue