void MakeWater() {
if( genParams.SpringDensity <= 0 ) return;
int waterSources =
(int)(map.Width*map.Length*genParams.SpringDensity/BaseSpringDensity/genParams.IslandDensity);
for( int i = 0; i < waterSources; i++ ) {
int x = rand.Next( 0, map.Width );
int y = rand.Next( 0, map.Length );
int z = rand.Next( map.Height/2, map.Height - 1 );
while( z > 0 ) {
if( map.GetBlock( x, y, z + 1 ) == Block.Air && map.GetBlock( x, y, z ) == Block.Grass ) {
MakeWaterSource( x, y, z );
break;
}
z--;
}
}
}