mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +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:
@@ -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{
|
||||
|
Reference in New Issue
Block a user