Server is sending ContainerClosePacket with id -1 when craftingevent is cancelled. Also there is small delay until the window get disapeared. When player closes it with ESC or E before client handles it, server also sends the containerclose packet which causes that disapears inventory gui too. Is there a way to fix this bug?