mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
EnderChestInventory: Removed unnecessary owner parameter
This commit is contained in:
parent
b75413e3c4
commit
d8dc89e7c8
@ -562,7 +562,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
$this->propertyManager->setBlockPos(self::DATA_PLAYER_BED_POSITION, null);
|
$this->propertyManager->setBlockPos(self::DATA_PLAYER_BED_POSITION, null);
|
||||||
|
|
||||||
$this->inventory = new PlayerInventory($this);
|
$this->inventory = new PlayerInventory($this);
|
||||||
$this->enderChestInventory = new EnderChestInventory($this);
|
$this->enderChestInventory = new EnderChestInventory();
|
||||||
$this->initHumanData();
|
$this->initHumanData();
|
||||||
|
|
||||||
$inventoryTag = $this->namedtag->getListTag("Inventory");
|
$inventoryTag = $this->namedtag->getListTag("Inventory");
|
||||||
|
@ -33,7 +33,7 @@ class EnderChestInventory extends ChestInventory{
|
|||||||
/** @var Position */
|
/** @var Position */
|
||||||
protected $holder;
|
protected $holder;
|
||||||
|
|
||||||
public function __construct(Human $owner){
|
public function __construct(){
|
||||||
ContainerInventory::__construct(new Position());
|
ContainerInventory::__construct(new Position());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user