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