CustomHeads
CustomHeads copied to clipboard
GetMenuTitle() conflicts with other containers
Issue Description
If another container has the name matching a HeadsTitle (for example a shulker box) they will conflict restricting some functionality including shift clicking an item in the container.
Infos
- Plugin Version: Latest
- Minecraft Version (ex. Paper 1.20.1):
Possible Fix:
Using custom InventoryHolders implementing them to a class and making the Menu use that holder when opening. (public abstract class CustomMenuHolder implements InventoryHolder)
this will allow to replace the
CustomHeads.getLooks().getMenuTitles().contains(event.getView().getTitle())
to
(menu.getHolder() instanceof CustomInventoryHolderHere)
Huh. Never heard about InventoryHolders I'll give it a look