Do not render underground water

This commit is contained in:
Nils Dagsson Moskopp 2022-05-19 06:05:33 +02:00
parent 5ccfcd922d
commit f0480f3105
Signed by untrusted user who does not match committer: erlehmann
GPG Key ID: A3BC671C35191080
1 changed files with 5 additions and 3 deletions

View File

@ -132,9 +132,11 @@ maps.create_map = function(pos, player_name)
"group:liquid" "group:liquid"
) )
for _, p in ipairs(positions) do for _, p in ipairs(positions) do
local z = p.z - minp.z + 1 if 14 == minetest.get_node_light(p, 0.5) then
local x = p.x - minp.x + 1 local z = p.z - minp.z + 1
pixels[z][x] = { 2 } local x = p.x - minp.x + 1
pixels[z][x] = { 2 }
end
end end
-- draw coastline -- draw coastline