mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
using bonemeal on grass sends inventory
This commit is contained in:
parent
24d5b8f1f5
commit
b05ca0e1b8
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class GrassBlock extends SolidBlock{
|
||||||
|
|
||||||
public function onActivate(Item $item, Player $player){
|
public function onActivate(Item $item, Player $player){
|
||||||
if($item->getID() === DYE and $item->getMetadata() === 0x0F){
|
if($item->getID() === DYE and $item->getMetadata() === 0x0F){
|
||||||
$player->consumeSingleItem();
|
$player->consumeSingleItem(send:true);
|
||||||
TallGrassObject::growGrass($this->level, $this, new Random(), 8, 2);
|
TallGrassObject::growGrass($this->level, $this, new Random(), 8, 2);
|
||||||
return true;
|
return true;
|
||||||
}elseif($item->isHoe()){
|
}elseif($item->isHoe()){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue