pyCraft
pyCraft copied to clipboard
"[Proxy] Lost connection to server "when opening game server menus
Using UseItemPacket()
for clicking items on hotbar some items work except those that open menus.
def click_inventory(n_slot): global connection packet = serverbound.play.UseItemPacket() packet.hand = n_slot connection.write_packet(packet)
How could I solve?
I tried to use HeldItemPacket too but same result.
minecraft always sync current slot before click, you may have a try