(URGENT!) Holes in terrain generation?

So I’m trying to generate terrain from a heightmap, which works. But there’s holes in the generation:


I’ve tried to make all of the terrain generate downwards, but that is only temporary as there is always a much bigger hole.

I think I could probably just find out if it’s on the side. But I don’t know how to find out if there’s a gap, and how many there are,

Please help!

2 Likes