PlayerInventory: Fixed $send parameter not working for setting armour slots

This commit is contained in:
Dylan K. Taylor 2018-01-06 16:24:17 +00:00
parent 1fb3274f37
commit 4d2549b50a

View File

@ -211,8 +211,10 @@ class PlayerInventory extends EntityInventory{
}
if($index >= $this->getSize()){
$this->sendArmorSlot($index, $this->getViewers());
$this->sendArmorSlot($index, $this->getHolder()->getViewers());
if($send){
$this->sendArmorSlot($index, $this->getViewers());
$this->sendArmorSlot($index, $this->getHolder()->getViewers());
}
}else{
//Do not send armor by accident here.
parent::onSlotChange($index, $before, $send);