It works. (Inventory, windows, block placement)

This commit is contained in:
Shoghi Cervantes
2014-05-24 00:32:29 +02:00
parent 5460ccf41c
commit f9103772c3
3 changed files with 9 additions and 10 deletions

View File

@ -153,10 +153,11 @@ class PlayerInventory extends BaseInventory{
if($index >= $this->getSize()){
$this->sendArmorContents($this->getHolder()->getViewers());
}
if($this->getHolder() instanceof Player){
$this->sendArmorContents($this->getHolder());
if($this->getHolder() instanceof Player){
$this->sendArmorContents($this->getHolder());
}
}elseif($this->getHolder() instanceof Player){
$this->sendSlot($index, $this->getHolder());
}
}