Stem: fixed supporting block check issue (#5907)

This bug was introduced in dca752c72f
This commit is contained in:
ipad54 2023-07-18 14:31:20 +03:00 committed by GitHub
parent 83d11c7429
commit e23806d417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ abstract class Stem extends Crops{
if($this->facing !== Facing::UP && !$this->getSide($this->facing)->hasSameTypeId($this->getPlant())){
$this->position->getWorld()->setBlock($this->position, $this->setFacing(Facing::UP));
}
parent::onNearbyBlockChange();
}
public function onRandomTick() : void{