mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-20 10:24:07 +00:00
Merge branch 'master' into 0.10
This commit is contained in:
commit
b565844062
@ -228,8 +228,10 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
|
||||
public function close(){
|
||||
if(!$this->closed){
|
||||
foreach($this->getInventory()->getViewers() as $player){
|
||||
$this->getInventory()->close($player);
|
||||
if(!($this instanceof Player) or $this->loggedIn){
|
||||
foreach($this->getInventory()->getViewers() as $player){
|
||||
$this->getInventory()->close($player);
|
||||
}
|
||||
}
|
||||
$this->inventory = null;
|
||||
parent::close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user