Closed gobboo closed 4 years ago
Updated the code a bit, but I foudn out that if I put the item in the slot then click a glass pane for example which is around the outside it updates ? Idk if this is a bug or not or becasue of the Editable ClickableItem
How would I go about updating the contents of an Inventory on an InventoryClickEvent
At the moment I'm doing this
Which is buggy, as it only updates the inventory if I spam click the item in? but my knowledge of .getContent() is limited and rn I thought it just returned the current open Inventories contents but I might be wrong.
And of course my listener is just
.listener(new InventoryListener<>(InventoryClickEvent.class, InventoryInteract::onInventoryClick))
Just wondering what the best method is to update the contents of items in the inventory on an event.