mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +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()){
|
if($index >= $this->getSize()){
|
||||||
|
if($send){
|
||||||
$this->sendArmorSlot($index, $this->getViewers());
|
$this->sendArmorSlot($index, $this->getViewers());
|
||||||
$this->sendArmorSlot($index, $this->getHolder()->getViewers());
|
$this->sendArmorSlot($index, $this->getHolder()->getViewers());
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
//Do not send armor by accident here.
|
//Do not send armor by accident here.
|
||||||
parent::onSlotChange($index, $before, $send);
|
parent::onSlotChange($index, $before, $send);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user