From 1e4a1565bb7aca234f24460b9725d00d0ce998b8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 2 Nov 2023 14:48:45 +0000 Subject: [PATCH] Stem: fixed not attaching to grown pumpkin/melon no idea how this got missed ... --- src/block/Stem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/block/Stem.php b/src/block/Stem.php index 73864ff69..d7bf8a51a 100644 --- a/src/block/Stem.php +++ b/src/block/Stem.php @@ -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)); + } } } }