EnderChestInventory: Removed unnecessary owner parameter

This commit is contained in:
Dylan K. Taylor 2018-05-18 16:46:36 +01:00
parent b75413e3c4
commit d8dc89e7c8
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -33,7 +33,7 @@ class EnderChestInventory extends ChestInventory{
/** @var Position */
protected $holder;
public function __construct(Human $owner){
public function __construct(){
ContainerInventory::__construct(new Position());
}