Shut up PhpStorm

This commit is contained in:
Dylan K. Taylor 2017-07-14 14:13:04 +01:00
parent 6de8415c79
commit bb230c5812

View File

@ -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]);