diff --git a/src/pocketmine/block/TallGrass.php b/src/pocketmine/block/TallGrass.php index faa483f80..bce7fef36 100644 --- a/src/pocketmine/block/TallGrass.php +++ b/src/pocketmine/block/TallGrass.php @@ -23,6 +23,7 @@ namespace pocketmine\block; use pocketmine\item\Item; use pocketmine\level\Level; +use pocketmine\Player; class TallGrass extends Flowable{ @@ -45,6 +46,17 @@ class TallGrass extends Flowable{ ]; return $names[$this->meta & 0x03]; } + + public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){ + $down = $this->getSide(0); + if($down->getId() === self::GRASS){ + $this->getLevel()->setBlock($block, $this, true); + + return true; + } + + return false; + } public function onUpdate($type){ @@ -67,4 +79,4 @@ class TallGrass extends Flowable{ return []; } -} \ No newline at end of file +}