Correct snowy village surface and crater terrain problem.
This commit is contained in:
parent
4141dce691
commit
366a2125b8
2 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,7 @@ fun_caves.cavegen = function(minp, maxp, data, area, node, heightmap, underzone,
|
|||
local height = heightmap[index]
|
||||
if crater then
|
||||
local dist = crater.y - math.sqrt((x - crater.x) ^ 2 + (z - crater.z) ^ 2)
|
||||
if dist > 0 and (height > maxp.y or height < minp.y + crater.y) then
|
||||
if dist > 0 and (height > maxp.y - 20 or height < minp.y + crater.y) then
|
||||
crater = nil
|
||||
end
|
||||
if crater and dist > 0 and dist <= 1 and crater_min > height then
|
||||
|
|
|
@ -246,6 +246,8 @@ fun_caves.village = function(minp, maxp, data, p2data, area, node, biome, height
|
|||
if turf == 'default:dirt_with_snow' then
|
||||
if math.random(10) == 1 then
|
||||
data[ivm] = node['default:dry_shrub']
|
||||
else
|
||||
data[ivm] = node['air']
|
||||
end
|
||||
elseif farming then
|
||||
data[ivm] = node['farming:wheat_'..math.random(7)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue