update
This commit is contained in:
parent
f09da08177
commit
b73637dcdc
@ -100,16 +100,14 @@ function mcl_better_end.mapgen.gen(minp, maxp, seed)
|
||||
perlin_map = minetest.get_perlin_map(np_perlin_3d, noise_size)
|
||||
|
||||
-- Calculate the 3D noise map
|
||||
noise_map = perlin_map:get_3d_map_flat(minp)
|
||||
noise_map = perlin_map:get_3d_map({x=minp.x,y=minp.y,z=minp.z})
|
||||
-- Main generation loop
|
||||
if minp.y > YMAX_biome then
|
||||
local index = 1
|
||||
for y = maxp.y, minp.y, -1 do
|
||||
for z = maxp.z, minp.z, -1 do
|
||||
for x = maxp.x, minp.x, -1 do
|
||||
local vi = area:index(x, y, z)
|
||||
local noise = noise_map[index]
|
||||
index = index + 1
|
||||
local noise = noise_map[x][y][z]
|
||||
|
||||
if not mcl_better_end.api.is_island(noise) then
|
||||
data[vi] = mcl_better_end.mapgen.registered_nodes.air
|
||||
|
Loading…
x
Reference in New Issue
Block a user