SamJakob/SpiGUI

Make SGMenu's onClose consume an InventoryCloseEvent

Ghosty920 opened this issue · 0 comments

private Consumer<SGMenu> onClose;

onClose should be a Consumer<InventoryCloseEvent>
Giving the menu when we are literally calling the method with that same menu isn't helpful, using the event would be more, like for accessing the player and the inventory