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"
|
||||
)
|
||||
for _, p in ipairs(positions) do
|
||||
local z = p.z - minp.z + 1
|
||||
local x = p.x - minp.x + 1
|
||||
pixels[z][x] = { 2 }
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue