From 6ce728169ee57d9ad4c1984f787b6dcacea3bc31 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 3 Jan 2018 12:08:35 +0000 Subject: [PATCH] Chest: Remove redundant unpairing code from onBreak() This is already done in the Level. --- src/pocketmine/block/Chest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/pocketmine/block/Chest.php b/src/pocketmine/block/Chest.php index fee491a747..edd1077ae4 100644 --- a/src/pocketmine/block/Chest.php +++ b/src/pocketmine/block/Chest.php @@ -101,16 +101,6 @@ class Chest extends Transparent{ return true; } - public function onBreak(Item $item, Player $player = null) : bool{ - $t = $this->getLevel()->getTile($this); - if($t instanceof TileChest){ - $t->unpair(); - } - $this->getLevel()->setBlock($this, BlockFactory::get(Block::AIR), true, true); - - return true; - } - public function onActivate(Item $item, Player $player = null) : bool{ if($player instanceof Player){