Corrected problems about snow mod

This commit is contained in:
Gael-de-Sailly 2015-07-09 11:27:40 +02:00
parent 3d6e348ed6
commit e55464394e
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@ local np_default = {
local np_cold = {
offset = 0,
scale = 1,
scale = -1,
spread = {x=256, y=256, z=256},
seed = 112,
octaves = 3,
@ -198,6 +198,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
break
end
end
if ground_y == maxp.y then -- avoid awful snow layers at chunk boundaries underground
ground_y = nil
end
if ground_y then
local vi = area:index(x, ground_y, z)
@ -240,6 +243,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
break
end
end
if ground_y == maxp.y then -- avoid awful snow layers at chunk boundaries underground
ground_y = nil
end
if ground_y then
local node = area:index(x, ground_y, z)