Muqsit / InvMenu

A PocketMine-MP virion to create and manage virtual inventories!
https://poggit.pmmp.io/ci/Muqsit/InvMenu/~
GNU General Public License v3.0
201 stars 75 forks source link

Client crashs when a chest is closed by a plugin #93

Closed Wertzui123 closed 4 years ago

Wertzui123 commented 4 years ago

Sourcode:

$ui = InvMenu::create(InvMenu::TYPE_CHEST);
$ui->setListener(function (Player $player, Item $clickedOn, Item $clickedWith, SlotChangeAction $action) {
    $player->removeWindow($action->getInventory());
});
$ui->send($player);

Expected result: An inventory which closes when you move an item into it.

Actual result: When you move an item into the inventory, it closes, the client starts freezing and crashes after a few seconds.

Software and hardware information: PocketMine: 3.14.2 InvMenu: Latest version (downloaded using git clone) Tested on: Windows 10, Android

Muqsit commented 4 years ago

Duplicate of #84