Inventory GUIS don't sync the player inventory (1.19.4/1.20)
CartographyTableGui gui = new CartographyTableGui("Click the Emerald Block");
gui.show(bukkitPlayer);
Attempting to interact with the player inventory causes desync issues. This is an issue with a large amount of inventory guis. (Tested with enchantment gui, beacon gui, and cartography gui)
https://github.com/stefvanschie/IF/assets/23108066/e707700c-c105-453a-9137-728df02e8ae4
The main issue is the buggy behavior in the GUI. My issue is I was directly setting items using setItem, so they weren't displaying. So although I can now get them to display correctly, there appears to be desync issues within the GUI itself.
EDIT: This also seems to be an issue with a large amount of inventories, tested with enchantment table gui too.
Thank you for the issue. This has been addressed in version 0.11.0