55 $world = $this->position->getWorld();
56 $upPos = $this->position->getSide(Facing::UP);
57 if(!$world->isInWorld($upPos->getFloorX(), $upPos->getFloorY(), $upPos->getFloorZ()) || $this->getSide(Facing::UP)->getTypeId() !== BlockTypeIds::AIR){
61 if($item instanceof
Fertilizer && ($doubleVariant = $this->getDoublePlantVariant()) !==
null){
62 $bottom = (clone $doubleVariant)->setTop(false);
63 $top = (clone $doubleVariant)->setTop(true);
64 $world->setBlock($this->position, $bottom);
65 $world->setBlock($this->position->getSide(Facing::UP), $top);