From d88c3d8ced493213ebfdf3f47bd7db8cfaaf3f3e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 2 Aug 2023 13:43:36 +0100 Subject: [PATCH] Fixed coral block killing itself when calling getDropsForCompatibleTool() this might be called by plugins without actually breaking the block, in which case the block will glitch. --- src/block/CoralBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/CoralBlock.php b/src/block/CoralBlock.php index d9787178d..97400e276 100644 --- a/src/block/CoralBlock.php +++ b/src/block/CoralBlock.php @@ -88,7 +88,7 @@ final class CoralBlock extends Opaque{ } public function getDropsForCompatibleTool(Item $item) : array{ - return [$this->setDead(true)->asItem()]; + return [(clone $this)->setDead(true)->asItem()]; } public function isAffectedBySilkTouch() : bool{