Fixed not being able to wear armour

This commit is contained in:
Dylan K. Taylor
2017-11-29 19:51:38 +00:00
parent 2cb81b5f8d
commit e94db980d7
3 changed files with 13 additions and 1 deletions

View File

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