From 159d49ebf34b6d94ee21279078b6fb521d34a7e5 Mon Sep 17 00:00:00 2001 From: kotyara Date: Thu, 9 Feb 2023 20:39:20 +0500 Subject: [PATCH] Update LeavesBlock.php --- src/material/block/solid/LeavesBlock.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/material/block/solid/LeavesBlock.php b/src/material/block/solid/LeavesBlock.php index 70ca8704..9b724de8 100644 --- a/src/material/block/solid/LeavesBlock.php +++ b/src/material/block/solid/LeavesBlock.php @@ -52,9 +52,7 @@ class LeavesBlock extends TransparentBlock{ $this->meta &= 0x03; $visited = array(); $check = 0; - if($this->findLog($this, $visited, 0) === true){ - //$this->level->setBlock($this, $this, false, false, true); why would you set a new block when you dont delete old one? - }else{ + if($this->findLog($this, $visited, 0) !== true){ $this->level->setBlock($this, new AirBlock(), false, false, true); if(mt_rand(1,20) === 1){ //Saplings ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem(SAPLING, $this->meta & 0x03, 1));