Merge branch 'next-minor' into next-major

This commit is contained in:
Dylan K. Taylor
2022-08-27 17:28:06 +01:00
3 changed files with 15 additions and 4 deletions

View File

@ -331,8 +331,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");
}