Closed YaNIND closed 2 years ago
Please provide more context.
private function checkAdjacentWater() : ?Block{
for($i = 1; $i < 6; ++$i){ //Do not check underneath
if($this->getSide($i) instanceof Water){
return BlockFactory::get(Block::CONCRETE, $this->meta);
}
}
return null;
}
trying this?
No, why is it needed? If you are talking about Sea Pickles only being able to be placed in water, check the waterlogging issue.
maybe you can use example in concretepowder