Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual lectern does not work #5139

Open
KabanFriends opened this issue Nov 9, 2024 · 0 comments
Open

Virtual lectern does not work #5139

KabanFriends opened this issue Nov 9, 2024 · 0 comments

Comments

@KabanFriends
Copy link

KabanFriends commented Nov 9, 2024

Describe the bug

When showing a lectern GUI of a lectern that does not exist in the world, bedrock players don't see the book text.

To Reproduce

  1. Run a code like this to open a virtual lectern GUI:
Inventory inv = Bukkit.createInventory(null, InventoryType.LECTERN);
ItemStack book = new ItemStack(Material.WRITTEN_BOOK);
BookMeta bookMeta = (BookMeta) book.getItemMeta();
bookMeta.addPage("Example Page Text");
bookMeta.setTitle("Example Title");
bookMeta.setAuthor("Sigong");
book.setItemMeta(bookMeta);
inv.setItem(0, book);
player.openInventory(inv);
  1. Observe the text in the book

Expected behaviour

Bedrock players can see the text "Example Page Text" correctly

Screenshots / Videos

image

Server Version and Plugins

No response

Geyser Dump

https://dump.geysermc.org/HlvLXuJ81Kd6Eb3zHAMo0pnpjT0Vxs0Z

Geyser Version

2.5.0-b711 (git-master-4598ffe)

Minecraft: Bedrock Edition Device/Version

1.21.41, Windows 11

Additional Context

This is the plugin I quickly wrote to reproduce the bug: TestPlugin.zip
Type /books in chat to see the virtual lectern GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant