Merge branch 'master' into 0.10

This commit is contained in:
Shoghi Cervantes 2014-10-24 12:07:35 +02:00
commit b565844062

View File

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