mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-11-06 01:50:19 +01:00
only search for jungleleaves etc. and set air there if air isnt already there (mapgen_v6)
This commit is contained in:
parent
a3b9c2df55
commit
943efa6110
|
@ -150,14 +150,17 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
if data[vi] == c_leaves or data[vi] == c_jungleleaves then
|
if data[vi] == c_leaves or data[vi] == c_jungleleaves then
|
||||||
for y = ground_y, -16, -1 do
|
for y = ground_y, -16, -1 do
|
||||||
local vi = area:index(x, y, z)
|
local vi = area:index(x, y, z)
|
||||||
if data[vi] ~= c_leaves
|
local id = data[vi]
|
||||||
and data[vi] ~= c_jungleleaves
|
if id ~= c_air then
|
||||||
and data[vi] ~= c_tree
|
if id == c_leaves
|
||||||
and data[vi] ~= c_air
|
or id == c_jungleleaves
|
||||||
and data[vi] ~= c_apple then
|
or id == c_tree
|
||||||
break
|
or id == c_air
|
||||||
else
|
or id == c_apple then
|
||||||
data[vi] = c_air
|
data[vi] = c_air
|
||||||
|
else
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user