This commit is contained in:
GameHerobrine 2022-07-11 00:01:20 +03:00
commit 4a78fefcb3

View file

@ -46,7 +46,7 @@ class SugarcaneBlock extends FlowableBlock{
$this->level->setBlock($this, $this, true, false, true); $this->level->setBlock($this, $this, true, false, true);
} }
if(($player->gamemode & 0x01) === 0){ if(($player->gamemode & 0x01) === 0){
$item->count--; $player->removeItem(DYE,0x0F,1);
} }
return true; return true;
} }
@ -100,4 +100,4 @@ class SugarcaneBlock extends FlowableBlock{
} }
return false; return false;
} }
} }