From 26549f9e42c56532b5dbbe83dbd280e8e24de29c Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Thu, 2 Jun 2022 23:59:16 +0300 Subject: [PATCH] Update TallGrass.php --- src/material/block/plant/TallGrass.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/material/block/plant/TallGrass.php b/src/material/block/plant/TallGrass.php index 0568b4f4..e43b14c2 100644 --- a/src/material/block/plant/TallGrass.php +++ b/src/material/block/plant/TallGrass.php @@ -45,12 +45,8 @@ class TallGrassBlock extends FlowableBlock{ public function getDrops(Item $item, Player $player){ $drops = array(); - if ($item->isShears()){ - $drops[] = array($this->id, $this->meta & 0x03, 1); - } - elseif(Utils::chance(15)){ - $drops[] = array(WHEAT_SEEDS, 0, 1) - } + if($item->isShears()) $drops[] = array($this->id, $this->meta & 0x03, 1); + elseif(Utils::chance(15)) $drops[] = array(WHEAT_SEEDS, 0, 1); return $drops; }