From 8aaa6dd176d7c55c187424cf8ea58b377b98fbd0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 2 Nov 2023 14:47:55 +0000 Subject: [PATCH] Stem: do not disable ticking when the stem is not attached to a pumpkin fixes #6131 --- src/block/Stem.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/block/Stem.php b/src/block/Stem.php index 7223572dd..73864ff69 100644 --- a/src/block/Stem.php +++ b/src/block/Stem.php @@ -58,6 +58,10 @@ abstract class Stem extends Crops{ parent::onNearbyBlockChange(); } + public function ticksRandomly() : bool{ + return $this->age < self::MAX_AGE || $this->facing === Facing::UP; + } + public function onRandomTick() : void{ if($this->facing === Facing::UP && mt_rand(0, 2) === 1){ $world = $this->position->getWorld();