Fix item caching bugs
This commit is contained in:
@@ -259,3 +259,30 @@ class ClickWindowPacket(Packet):
|
||||
{'mode': VarInt},
|
||||
{'clicked_item': Slot},
|
||||
]
|
||||
|
||||
|
||||
class ClientWindowConfirmationPacket(Packet):
|
||||
# Sent by the server indicating whether a request from the client was accepted
|
||||
# https://wiki.vg/Protocol#Window_Confirmation_.28clientbound.29
|
||||
|
||||
id = 0x11
|
||||
packet_name = 'client window confirmation'
|
||||
|
||||
definition = [
|
||||
{'window_id': Byte},
|
||||
{'action_number': Short},
|
||||
{'accepted': Boolean},
|
||||
]
|
||||
|
||||
class ServerWindowConfirmationPacket(Packet):
|
||||
# Sent by the client to confirm an unaccepted click
|
||||
# https://wiki.vg/Protocol#Window_Confirmation_.28serverbound.29
|
||||
|
||||
id = 0x07
|
||||
packet_name = 'client window confirmation'
|
||||
|
||||
definition = [
|
||||
{'window_id': Byte},
|
||||
{'action_number': Short},
|
||||
{'accepted': Boolean},
|
||||
]
|
||||
|
Reference in New Issue
Block a user