diff --git a/src/material/block/solid/Chest.php b/src/material/block/solid/Chest.php index 70b7eefde6..1531e9d9ae 100644 --- a/src/material/block/solid/Chest.php +++ b/src/material/block/solid/Chest.php @@ -73,8 +73,12 @@ class ChestBlock extends TransparentBlock{ } public function onBreak(Item $item, Player $player){ - $this->level->setBlock($this, new AirBlock(), true, true); - return true; + $t = ServerAPI::request()->api->tile->get($this); + if($t !== false){ + $t->unpair(); + } + $this->level->setBlock($this, new AirBlock(), true, true); + return true; } public function onActivate(Item $item, Player $player){