mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Stem: fixed not attaching to grown pumpkin/melon
no idea how this got missed ...
This commit is contained in:
parent
8aaa6dd176
commit
1e4a1565bb
@ -80,7 +80,9 @@ abstract class Stem extends Crops{
|
||||
$facing = Facing::HORIZONTAL[array_rand(Facing::HORIZONTAL)];
|
||||
$side = $this->getSide($facing);
|
||||
if($side->getTypeId() === BlockTypeIds::AIR && $side->getSide(Facing::DOWN)->hasTypeTag(BlockTypeTags::DIRT)){
|
||||
BlockEventHelper::grow($side, $grow, null);
|
||||
if(BlockEventHelper::grow($side, $grow, null)){
|
||||
$this->position->getWorld()->setBlock($this->position, $this->setFacing($facing));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user