BaseInventory: Remove getDefaultSize()

it's possible to want to initialize dynamically-sized inventories which don't have a default size.
This commit is contained in:
Dylan K. Taylor
2019-03-22 19:21:41 +00:00
parent 60225a378f
commit 9904810f24
13 changed files with 17 additions and 64 deletions

View File

@@ -45,11 +45,7 @@ class PlayerInventory extends BaseInventory{
*/
public function __construct(Human $player){
$this->holder = $player;
parent::__construct();
}
public function getDefaultSize() : int{
return 36;
parent::__construct(36);
}
public function isHotbarSlot(int $slot) : bool{