Bonemeal fix. (Sugarcane)

Пофиксил баг с бесконечной фармом тростника через костную муку.
This commit is contained in:
Tema1d 2022-07-04 16:53:21 +03:00 • committed by GitHub
parent 1a585d0ea8
commit 2b1d641084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}