diff --git a/src/block/tile/Chest.php b/src/block/tile/Chest.php index 6479c4628..fe77aa979 100644 --- a/src/block/tile/Chest.php +++ b/src/block/tile/Chest.php @@ -101,7 +101,6 @@ class Chest extends Spawnable implements Container, Nameable{ if($this->doubleInventory !== null){ if($this->isPaired() and $this->world->isChunkLoaded($this->pairX >> 4, $this->pairZ >> 4)){ $this->doubleInventory->removeAllViewers(); - $this->doubleInventory->invalidate(); if(($pair = $this->getPair()) !== null){ $pair->doubleInventory = null; } diff --git a/src/inventory/DoubleChestInventory.php b/src/inventory/DoubleChestInventory.php index 451ddc7a7..273e04c2a 100644 --- a/src/inventory/DoubleChestInventory.php +++ b/src/inventory/DoubleChestInventory.php @@ -100,9 +100,4 @@ class DoubleChestInventory extends ChestInventory implements InventoryHolder{ public function getRightSide() : ChestInventory{ return $this->right; } - - public function invalidate(){ - $this->left = null; - $this->right = null; - } }