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 +}