From 2df57e12675e85156dbdec109c17b8fcfd1b771c Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Thu, 23 Dec 2021 23:31:32 +0300 Subject: [PATCH] Update Sapling.php --- src/material/block/plant/Sapling.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/block/plant/Sapling.php b/src/material/block/plant/Sapling.php index 21eaadbe..c0fd8f37 100644 --- a/src/material/block/plant/Sapling.php +++ b/src/material/block/plant/Sapling.php @@ -62,7 +62,7 @@ class SaplingBlock extends FlowableBlock{ public function onUpdate($type){ if($type === BLOCK_UPDATE_NORMAL){ if($this->getSide(0)->isTransparent === true){ //Replace with common break method - ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id)); + ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, $this->getMetadata())); $this->level->setBlock($this, new AirBlock(), false, false, true); return BLOCK_UPDATE_NORMAL; }