Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvMenu::TYPE_DOUBLE_CHEST does not work #1

Closed
Muqsit opened this issue Feb 1, 2018 · 5 comments
Closed

InvMenu::TYPE_DOUBLE_CHEST does not work #1

Muqsit opened this issue Feb 1, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@Muqsit
Copy link
Owner

Muqsit commented Feb 1, 2018

This hasn't been correctly implemented due to the slight complexity that double chests offer.

@Muqsit Muqsit added the bug Something isn't working label Feb 1, 2018
@Muqsit Muqsit closed this as completed in 669a745 Feb 1, 2018
@bruno1069
Copy link

Question

How to do when the player clicks an item in Inv Menu the Menu close?

@Muqsit
Copy link
Owner Author

Muqsit commented Feb 2, 2018

@bruno1069

/** @var InvMenu $menu */
$menu->setListener(function(Player $player, Item $item1, Item $item2, SlotChangeAction $invAction) : bool{
    $player->removeWindow($invAction->getInventory());
});

@bruno1069
Copy link

Thanks

@alair069
Copy link

alair069 commented Feb 2, 2018

image

Is not setListener?

@Muqsit
Copy link
Owner Author

Muqsit commented Feb 2, 2018

@alair069 thanks, but please open a new issue next time 👍
b6cc536

Repository owner locked as off-topic and limited conversation to collaborators Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants