Skip to content

Commit 984a133

Browse files
committed
InventoryCloseEvent: call InvMenu::onClose()
1 parent 7552ae9 commit 984a133

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/muqsit/invmenu/InvMenuEventHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function onInventoryClose(InventoryCloseEvent $event) : void{
7878
$session->current = null;
7979
}
8080
$session->network->wait(PlayerNetwork::DELAY_TYPE_ANIMATION_WAIT, static fn($success) => false);
81+
$current?->menu->onClose($player);
8182
}
8283

8384
/**

0 commit comments

Comments
 (0)