mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Fixed not being able to wear armour
This commit is contained in:
@ -77,7 +77,7 @@ class SlotChangeAction extends InventoryAction{
|
||||
public function isValid(Player $source) : bool{
|
||||
return (
|
||||
$this->inventorySlot >= 0 and
|
||||
$this->inventorySlot < $this->inventory->getSize() and
|
||||
$this->inventory->slotExists($this->inventorySlot) and
|
||||
$this->inventory->getItem($this->inventorySlot)->equalsExact($this->sourceItem)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user