adjust depth levels, don't disable caves
This commit is contained in:
parent
f1f0abcc16
commit
133e66ad38
4 changed files with 13 additions and 9 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
fun_caves_mod.cave_width = 0.05 -- figurative width
|
||||
local max_depth = 31000
|
||||
local max_depth = -28000
|
||||
|
||||
|
||||
fun_caves_mod.cave_noise_1 = {offset = 0, scale = 1, seed = 3901, spread = {x = 40, y = 10, z = 40}, octaves = 3, persist = 1, lacunarity = 2}
|
||||
|
@ -16,8 +16,11 @@ fun_caves_mod.cavegen = function(minp, maxp, data, area, node, heightmap)
|
|||
if not (minp and maxp and data and area and node and type(data) == 'table') then
|
||||
return
|
||||
end
|
||||
|
||||
local csize = vector.add(vector.subtract(maxp, minp), 1)
|
||||
|
||||
local temp_y = (minp.y+maxp.y)/2
|
||||
if temp_y > -28000 or temp_y < -30999 then return end
|
||||
|
||||
local csize = vector.add(vector.subtract(maxp, minp), 1)
|
||||
local map_max = {x = csize.x, y = csize.y + 2, z = csize.z}
|
||||
local map_min = {x = minp.x, y = minp.y - 1, z = minp.z}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue