GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.71k stars 675 forks source link

Mobile Bedrock InventoryOpenEvent not being cancelled. #4797

Closed stromsoftware closed 2 months ago

stromsoftware commented 3 months ago

Describe the bug

When mobile Bedrock users click on anvil I cancel InventoryOpenEvent but it shows anyways.

To Reproduce

  1. Use InventoryOpenEvent to cancel all events
  2. Click on anvil while in Mobile Bedrock edition.

Expected behaviour

Anvil should not open.

Screenshots / Videos

No response

Server Version and Plugins

No response

Geyser Dump

No response

Geyser Version

55e90b6

Minecraft: Bedrock Edition Device/Version

Mobile/Pocket Edition latest

Additional Context

No response

onebeastchris commented 3 months ago

Unable to reproduce on Paper 1.21 and Minecraft: Bedrock Edition on Android/iPad/Win10 (all on 1.21.1) using the following bit of code:

@EventHandler
  public void onInventoryOpen(InventoryOpenEvent event) {
      if (event.getInventory() instanceof AnvilInventory) {
          System.out.println("Anvil inventory is being opened!");
          event.setCancelled(true);
      }
  }

Please provide complete reproduction steps, a Geyser dump, and specify which Bedrock/Java versions this occurs with.

onebeastchris commented 2 months ago

Closing due to no further response.