Remove dead heightmap code.
This commit is contained in:
parent
3f8a2de971
commit
e5e7475476
2 changed files with 2 additions and 14 deletions
11
cavegen.lua
11
cavegen.lua
|
@ -17,11 +17,6 @@ fun_caves.cavegen = function(minp, maxp, data, area, node, heightmap, underzone,
|
|||
local map_min = {x = minp.x, y = minp.y - 1, z = minp.z}
|
||||
local return_heightmap = false
|
||||
|
||||
if not heightmap then
|
||||
return_heightmap = true
|
||||
heightmap = {}
|
||||
end
|
||||
|
||||
local cave_1 = minetest.get_perlin_map(fun_caves.cave_noise_1, map_max):get3dMap_flat(map_min)
|
||||
local cave_2 = minetest.get_perlin_map(fun_caves.cave_noise_2, map_max):get3dMap_flat(map_min)
|
||||
local cave_3 = minetest.get_perlin_map(cave_noise_3, {x=csize.x, y=csize.z}):get2dMap_flat({x=minp.x, y=minp.z})
|
||||
|
@ -140,9 +135,5 @@ fun_caves.cavegen = function(minp, maxp, data, area, node, heightmap, underzone,
|
|||
end
|
||||
end
|
||||
|
||||
if return_heightmap then
|
||||
return write, heightmap
|
||||
else
|
||||
return write, nil
|
||||
end
|
||||
return write
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue