diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 3a550f784..66cf788fd 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3826,6 +3826,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ public function removeWindow(Inventory $inventory){ $inventory->close($this); if($this->windows->contains($inventory)){ + /** @var int $id */ $id = $this->windows[$inventory]; $this->windows->detach($this->windowIndex[$id]); unset($this->windowIndex[$id]);