Reuse noise table.

master
Duane Robertson 2017-04-03 02:11:40 -05:00
parent 0504712346
commit ba62d3817a
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ local max_depth = 31000
local terrain_noise = {offset = 15, scale = 10, seed = 3721, spread = {x = 40, y = 40, z = 40}, octaves = 3, persist = 1, lacunarity = 2}
local terrain_map
local terrain = {}
underworlds_mod.undergen = function(minp, maxp, data, p2data, area, node, underzone)
@ -28,7 +29,7 @@ underworlds_mod.undergen = function(minp, maxp, data, p2data, area, node, underz
end
end
local terrain = terrain_map:get2dMap_flat({x=minp.x, y=minp.z})
terrain = terrain_map:get2dMap_flat({x=minp.x, y=minp.z}, terrain)
if not terrain then
return
end