mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +00:00
TallGrass: fixed placement on dirt, closes #2552
This commit is contained in:
parent
768cfe3953
commit
1d0ffa06f8
@ -51,8 +51,8 @@ class TallGrass extends Flowable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
|
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
|
||||||
$down = $this->getSide(Vector3::SIDE_DOWN);
|
$down = $this->getSide(Vector3::SIDE_DOWN)->getId();
|
||||||
if($down->getId() === self::GRASS){
|
if($down === self::GRASS or $down === self::DIRT){
|
||||||
$this->getLevel()->setBlock($blockReplace, $this, true);
|
$this->getLevel()->setBlock($blockReplace, $this, true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user