diff --git a/src/pocketmine/entity/Human.php b/src/pocketmine/entity/Human.php index 35507957c..2fd9d71f0 100644 --- a/src/pocketmine/entity/Human.php +++ b/src/pocketmine/entity/Human.php @@ -562,7 +562,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{ $this->propertyManager->setBlockPos(self::DATA_PLAYER_BED_POSITION, null); $this->inventory = new PlayerInventory($this); - $this->enderChestInventory = new EnderChestInventory($this); + $this->enderChestInventory = new EnderChestInventory(); $this->initHumanData(); $inventoryTag = $this->namedtag->getListTag("Inventory"); diff --git a/src/pocketmine/inventory/EnderChestInventory.php b/src/pocketmine/inventory/EnderChestInventory.php index 7639b0cd4..a097a0ab2 100644 --- a/src/pocketmine/inventory/EnderChestInventory.php +++ b/src/pocketmine/inventory/EnderChestInventory.php @@ -33,7 +33,7 @@ class EnderChestInventory extends ChestInventory{ /** @var Position */ protected $holder; - public function __construct(Human $owner){ + public function __construct(){ ContainerInventory::__construct(new Position()); }