Closed Muqsit closed 6 years ago
Question
How to do when the player clicks an item in Inv Menu the Menu close?
@Bruno1069
/** @var InvMenu $menu */
$menu->setListener(function(Player $player, Item $item1, Item $item2, SlotChangeAction $invAction) : bool{
$player->removeWindow($invAction->getInventory());
});
Thanks
Is not setListener?
@alair069 thanks, but please open a new issue next time 👍 https://github.com/Muqsit/InvMenu/commit/b6cc5363338285155de0cf7842e35a4eb910d280
This hasn't been correctly implemented due to the slight complexity that double chests offer.