From 2b1d641084c3684d5720bfaf249ab22d2047347f Mon Sep 17 00:00:00 2001 From: Tema1d <84407490+Tema1d@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:53:21 +0300 Subject: [PATCH] Bonemeal fix. (Sugarcane) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Пофиксил баг с бесконечной фармом тростника через костную муку. --- src/material/block/plant/Sugarcane.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/block/plant/Sugarcane.php b/src/material/block/plant/Sugarcane.php index 34b0825c..2ecf7596 100644 --- a/src/material/block/plant/Sugarcane.php +++ b/src/material/block/plant/Sugarcane.php @@ -46,7 +46,7 @@ class SugarcaneBlock extends FlowableBlock{ $this->level->setBlock($this, $this, true, false, true); } if(($player->gamemode & 0x01) === 0){ - $item->count--; + $player->removeItem(DYE,0x0F,1); } return true; } @@ -100,4 +100,4 @@ class SugarcaneBlock extends FlowableBlock{ } return false; } -} \ No newline at end of file +}