Merge branch 'next-minor' into item-stack-request

This commit is contained in:
Dylan K. Taylor
2022-10-16 16:56:26 +01:00
136 changed files with 1764 additions and 799 deletions

View File

@ -345,8 +345,10 @@ class InventoryManager{
public function onClientRemoveWindow(int $id) : void{
if($id === $this->lastInventoryNetworkId){
$this->remove($id);
$this->player->removeCurrentWindow();
if(isset($this->windowMap[$id]) && $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");
}