Fixed PE armor screen glitching when equipping armor items

This commit is contained in:
Dylan K. Taylor 2017-05-01 12:48:45 +01:00
parent b6fe231bc1
commit c0e0730923

View File

@ -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);
} }
} }