mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
PlayerInventory: Fixed $send parameter not working for setting armour slots
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user