mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fixed bonemeal on plants and grass
This commit is contained in:
parent
05ae15ef74
commit
4a5d4e89e5
8 changed files with 10 additions and 10 deletions
|
|
@ -33,10 +33,10 @@ class GrassBlock extends SolidBlock{
|
|||
|
||||
public function onActivate(Item $item, Player $player){
|
||||
if($item->getID() === DYE and $item->getMetadata() === 0x0F){
|
||||
if(($player->gamemode & 0x01) === 0){
|
||||
$item->count--;
|
||||
}
|
||||
TallGrassObject::growGrass($this->level, $this, new Random(), 8, 2);
|
||||
if(($player->gamemode & 0x01) === 0){
|
||||
$player->removeItem(DYE,0x0F,1);
|
||||
}
|
||||
return true;
|
||||
}elseif($item->isHoe()){
|
||||
if(($player->gamemode & 0x01) === 0){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue