mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-28 15:20:47 +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 = {
|
local np_cold = {
|
||||||
offset = 0,
|
offset = 0,
|
||||||
scale = 1,
|
scale = -1,
|
||||||
spread = {x=256, y=256, z=256},
|
spread = {x=256, y=256, z=256},
|
||||||
seed = 112,
|
seed = 112,
|
||||||
octaves = 3,
|
octaves = 3,
|
||||||
@ -198,6 +198,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if ground_y == maxp.y then -- avoid awful snow layers at chunk boundaries underground
|
||||||
|
ground_y = nil
|
||||||
|
end
|
||||||
|
|
||||||
if ground_y then
|
if ground_y then
|
||||||
local vi = area:index(x, ground_y, z)
|
local vi = area:index(x, ground_y, z)
|
||||||
@ -240,6 +243,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if ground_y == maxp.y then -- avoid awful snow layers at chunk boundaries underground
|
||||||
|
ground_y = nil
|
||||||
|
end
|
||||||
|
|
||||||
if ground_y then
|
if ground_y then
|
||||||
local node = area:index(x, ground_y, z)
|
local node = area:index(x, ground_y, z)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user