checkAdjacentWater()) !== null){ $this->level->setBlock($this, $block); }else{ $this->startFalling(); } } /** * @return null|Block */ public function tickFalling() : ?Block{ return $this->checkAdjacentWater(); } /** * @return null|Block */ private function checkAdjacentWater() : ?Block{ foreach(Facing::ALL as $i){ if($i === Facing::DOWN){ continue; } if($this->getSide($i) instanceof Water){ return BlockFactory::get(Block::CONCRETE, $this->idInfo->getVariant()); } } return null; } }