mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: Fixed logical nonsense in removeWindow()
The only time this is set anyway is obviously if the ID is non-null.
This commit is contained in:
parent
ef816c0a52
commit
ffb3e2b47a
@ -3780,10 +3780,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
}
|
||||
|
||||
$inventory->close($this);
|
||||
|
||||
unset($this->windows[$hash]);
|
||||
if($id !== null){
|
||||
unset($this->windowIndex[$id], $this->permanentWindows[$id]);
|
||||
unset($this->windows[$hash], $this->windowIndex[$id], $this->permanentWindows[$id]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user