mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
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:
@ -43,17 +43,13 @@ class ArmorInventory extends BaseInventory{
|
||||
|
||||
public function __construct(Living $holder){
|
||||
$this->holder = $holder;
|
||||
parent::__construct();
|
||||
parent::__construct(4);
|
||||
}
|
||||
|
||||
public function getHolder() : Living{
|
||||
return $this->holder;
|
||||
}
|
||||
|
||||
public function getDefaultSize() : int{
|
||||
return 4;
|
||||
}
|
||||
|
||||
public function getHelmet() : Item{
|
||||
return $this->getItem(self::SLOT_HEAD);
|
||||
}
|
||||
|
Reference in New Issue
Block a user