1
0
Fork 0

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: erle
GPG Key ID: A3BC671C35191080
1 changed files with 5 additions and 3 deletions

View File

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