This commit is contained in:
əlemi 2021-12-12 04:01:52 +01:00
parent 7a3107be3d
commit ff56276662

View file

@ -152,6 +152,7 @@ class Treepuncher(MinecraftClient):
) )
async def set_slot(self, slot:int): async def set_slot(self, slot:int):
self.slot = slot
await self.dispatcher.write(PacketHeldItemSlot(self.dispatcher.proto, slotId=slot)) await self.dispatcher.write(PacketHeldItemSlot(self.dispatcher.proto, slotId=slot))
def _register_handlers(self): def _register_handlers(self):