pyCraft icon indicating copy to clipboard operation
pyCraft copied to clipboard

"[Proxy] Lost connection to server "when opening game server menus

Open ghost opened this issue 4 years ago • 2 comments

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?

immagine

ghost avatar Jan 14 '21 09:01 ghost

I tried to use HeldItemPacket too but same result.

ghost avatar Jan 15 '21 19:01 ghost

minecraft always sync current slot before click, you may have a try

Cassy-Lee avatar Apr 22 '23 07:04 Cassy-Lee