mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed PE armor screen glitching when equipping armor items
This commit is contained in:
@ -260,11 +260,12 @@ class PlayerInventory extends BaseInventory{
|
||||
return;
|
||||
}
|
||||
|
||||
parent::onSlotChange($index, $before);
|
||||
|
||||
if($index >= $this->getSize()){
|
||||
$this->sendArmorSlot($index, $this->getViewers());
|
||||
$this->sendArmorSlot($index, $this->getHolder()->getViewers());
|
||||
}else{
|
||||
//Do not send armor by accident here.
|
||||
parent::onSlotChange($index, $before);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user