mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
PlayerInventory: Fixed $send parameter not working for setting armour slots
This commit is contained in:
parent
1fb3274f37
commit
4d2549b50a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user