Merge branch 'stable' into next-minor

This commit is contained in:
Dylan K. Taylor
2022-08-27 17:27:15 +01:00
5 changed files with 22 additions and 242 deletions

View File

@ -325,8 +325,10 @@ class InventoryManager{
public function onClientRemoveWindow(int $id) : void{
if($id === $this->lastInventoryNetworkId){
$this->remove($id);
$this->player->removeCurrentWindow();
if($id !== $this->pendingCloseWindowId){
$this->remove($id);
$this->player->removeCurrentWindow();
}
}else{
$this->session->getLogger()->debug("Attempted to close inventory with network ID $id, but current is $this->lastInventoryNetworkId");
}