Decode selected hotbar slot updates
This commit is contained in:
1 parent
9cd9aef05f
commit
0e3b556628
2 files changed
+16
-2
No files matched your search
@@ -831,6 +831,13 @@ class SetCarriedItemPacket(Packet):
|
||||
definition = [{'slot': Short}]
|
||||
|
||||
|
||||
class SetHeldSlotPacket(Packet):
|
||||
"""Server synchronization of the selected hotbar slot (protocol 777)."""
|
||||
id = 0x6B
|
||||
packet_name = "set held slot"
|
||||
definition = [{'slot': VarInt}]
|
||||
|
||||
|
||||
class ContainerClickSwapPacket(Packet):
|
||||
id = 0x12
|
||||
packet_name = "container click swap"
|
||||
@@ -1134,7 +1141,7 @@ class ModernPlayingReactor(PacketReactor):
|
||||
EntityPositionSyncPacket, PlayerInfoUpdatePacket,
|
||||
PlayerInfoRemovePacket, ContainerOpenPacket,
|
||||
ContainerSetContentPacket, ContainerSetSlotPacket,
|
||||
SetCursorItemPacket,
|
||||
SetCursorItemPacket, SetHeldSlotPacket,
|
||||
}
|
||||
|
||||
def react(self, packet):
|
||||
|
||||
Reference in new issue
Block a user