diff --git a/source/Craft.Net.Networking/Packets.cs b/source/Craft.Net.Networking/Packets.cs index 1fc30e40..f6be0819 100644 --- a/source/Craft.Net.Networking/Packets.cs +++ b/source/Craft.Net.Networking/Packets.cs @@ -677,7 +677,10 @@ public HeldItemPacket(sbyte slot) public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { - Slot = stream.ReadInt16(); + if (direction == PacketDirection.Clientbound) + Slot = stream.ReadInt8(); + else + Slot = stream.ReadInt16(); return mode; }