forked from erle/xmaps
Do not render underground water
This commit is contained in:
parent
5ccfcd922d
commit
f0480f3105
8
init.lua
8
init.lua
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue