Fix bedrock/lava/void layers not generating at all
lvm_used was accidentally set to nil by the clay generator. OMG!objects
parent
3643e9ac92
commit
caedf0649a
|
@ -996,7 +996,7 @@ local perlin_clay
|
||||||
local function generate_clay(minp, maxp, seed, voxelmanip_data, voxelmanip_area, lvm_used)
|
local function generate_clay(minp, maxp, seed, voxelmanip_data, voxelmanip_area, lvm_used)
|
||||||
-- TODO: Make clay generation reproducible for same seed.
|
-- TODO: Make clay generation reproducible for same seed.
|
||||||
if maxp.y < -5 or minp.y > 0 then
|
if maxp.y < -5 or minp.y > 0 then
|
||||||
return
|
return lvm_used
|
||||||
end
|
end
|
||||||
|
|
||||||
perlin_clay = perlin_clay or minetest.get_perlin({
|
perlin_clay = perlin_clay or minetest.get_perlin({
|
||||||
|
|
Loading…
Reference in New Issue