Reverted a mistake

This commit is contained in:
Dušan Milutinović 2022-07-01 19:02:53 +02:00
parent 3d8c112159
commit 7c364731f5

View file

@ -1957,8 +1957,9 @@ namespace MinecraftClient.Protocol.Handlers
packet.Add(button);
if (protocolversion < MC117Version) packet.AddRange(dataTypes.GetShort(actionNumber));
if (protocolversion >= MC1165Version)
if (protocolversion >= MC19Version)
packet.AddRange(dataTypes.GetVarInt(mode));
else packet.Add(mode);
// 1.17+
if (protocolversion >= MC117Version)