forked from mtcontrib/minetest-mod-snow
Revert "generate snow only into air"
reason: testing it is not necessary
This reverts commit 4a9fbc8202
.
This commit is contained in:
parent
4a9fbc8202
commit
60f3ac4dea
|
@ -355,21 +355,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
|
|
||||||
local param2s
|
local param2s
|
||||||
if num ~= 1 then
|
if num ~= 1 then
|
||||||
local unwanteds,u = {},1
|
for _,i in pairs(snow_tab) do
|
||||||
for n,i in pairs(snow_tab) do
|
-- set snow
|
||||||
local p = area:index(i[3], i[1]+1, i[2])
|
data[area:index(i[3], i[1]+1, i[2])] = c.snow
|
||||||
if data[p] == c.air then
|
|
||||||
-- set snow
|
|
||||||
data[p] = c.snow
|
|
||||||
else
|
|
||||||
unwanteds[u] = n
|
|
||||||
u = u+1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if u ~= 1 then
|
|
||||||
for _,n in pairs(unwanteds) do
|
|
||||||
snow_tab[n] = nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
local wsz, wsx
|
local wsz, wsx
|
||||||
for _,i in pairs(snow_tab) do
|
for _,i in pairs(snow_tab) do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user