Skip to content

Player#closeInventory does not work in client-side for Bedrock players #5259

Closed
@bilektugrul

Description

@bilektugrul

Describe the bug

When Player#closeInventory is executed for a Bedrock player, it closes the open inventory in server-side, but Bedrock client will still have the inventory GUI open. This leads to a desync.

To Reproduce

  1. Create a command that waits 2-3 seconds after its usage then executes Player#closeInventory. Preferably add Player#getCurrentInventory debugs before and after the wait.
  2. Execute the command and open any GUI like player inventory, chest inventory or crafting inventory.
  3. After set wait seconds, GUI will be closed in server-side but client will still see it.

Expected behaviour

GUI should be closed in both sides, server and client.

Screenshots / Videos

No response

Server Version and Plugins

No response

Geyser Dump

No response

Geyser Version

1.2.0-SNAPSHOT

Minecraft: Bedrock Edition Device/Version

Latest

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Confirmed BugThe bug reported is confirmed and able to be replicated.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions