From 629db098432e3d10f75ee6b900fbfce9ba25b8a0 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 8 Aug 2023 02:15:34 +0300 Subject: [PATCH] cacti drop fix i guess --- src/material/block/plant/CactusBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/block/plant/CactusBlock.php b/src/material/block/plant/CactusBlock.php index 74eaf64e..e290c738 100644 --- a/src/material/block/plant/CactusBlock.php +++ b/src/material/block/plant/CactusBlock.php @@ -39,7 +39,7 @@ class CactusBlock extends TransparentBlock{ $block2 = $this->getSide(4); $block3 = $this->getSide(5); if($block0->isFlowable === false or $block1->isFlowable === false or $block2->isFlowable === false or $block3->isFlowable === false or ($down->getID() !== SAND and $down->getID() !== CACTUS)){ //Replace with common break method - $this->level->setBlock($this, new AirBlock(), false); + $this->level->setBlock($this, new AirBlock(), true, false, true); ServerAPI::request()->api->entity->drop(new Position($this->x + 0.5, $this->y, $this->z + 0.5, $this->level), BlockAPI::getItem($this->id)); return BLOCK_UPDATE_NORMAL; }