avoid artefacts where terrain blend encounters deep oceans
parent
398f846ff2
commit
2b5a224de1
10
mapgen.lua
10
mapgen.lua
|
@ -125,9 +125,13 @@ mg_villages.lower_or_raise_terrain_at_point = function( x, z, target_height, min
|
||||||
end
|
end
|
||||||
y = y-1;
|
y = y-1;
|
||||||
end
|
end
|
||||||
|
|
||||||
if( not( surface_node ) and old_height == maxp.y and data[a:index( x, minp.y, z)]==c_air) then
|
if( not( surface_node ) and old_height == maxp.y ) then
|
||||||
old_height = vh - 2;
|
if( data[a:index( x, minp.y, z)]==c_air) then
|
||||||
|
old_height = vh - 2;
|
||||||
|
elseif( minp.y < 0 ) then
|
||||||
|
old_height = minp.y;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if( not( surface_node ) or surface_node == cid.c_dirt) then
|
if( not( surface_node ) or surface_node == cid.c_dirt) then
|
||||||
surface_node = cid.c_dirt_with_grass;
|
surface_node = cid.c_dirt_with_grass;
|
||||||
|
|
Loading…
Reference in New Issue