Do not generate Nether lava above Nether roof

This commit is contained in:
Nils Dagsson Moskopp 2022-02-12 17:10:15 +01:00
parent 5f5796330f
commit 0c1604e9f8
Signed by untrusted user who does not match committer: erle
GPG Key ID: A3BC671C35191080
1 changed files with 5 additions and 1 deletions

View File

@ -2169,7 +2169,11 @@ local function basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
for n=1, #nodes do for n=1, #nodes do
local p_pos = area:index(nodes[n].x, nodes[n].y, nodes[n].z) local p_pos = area:index(nodes[n].x, nodes[n].y, nodes[n].z)
if data[p_pos] == c_water then if data[p_pos] == c_water then
data[p_pos] = c_nether_lava if nodes[n].y > mcl_vars.mg_bedrock_nether_top_max then
data[p_pos] = c_air -- no lava on the roof pls
else
data[p_pos] = c_nether_lava
end
lvm_used = true lvm_used = true
elseif data[p_pos] == c_stone then elseif data[p_pos] == c_stone then
-- this deals with random stone layers Minetest creates -- this deals with random stone layers Minetest creates