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