mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Corrected problems about snow mod
This commit is contained in:
parent
3d6e348ed6
commit
e55464394e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user