mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed not being able to wear armour
This commit is contained in:
@ -461,4 +461,8 @@ abstract class BaseInventory implements Inventory{
|
||||
$player->dataPacket($pk);
|
||||
}
|
||||
}
|
||||
|
||||
public function slotExists(int $slot) : bool{
|
||||
return $slot >= 0 and $slot < $this->slots->getSize(); //use actual slots size to allow PlayerInventory to lie
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user