Use only the 10 last digits of world seed at pregenerate

This commit is contained in:
Gaël C 2024-01-28 22:12:05 +01:00
parent 72e2f3e670
commit ed832a0806

View File

@ -56,7 +56,7 @@ function mapgen_rivers.pregenerate(grid)
minetest.log("warning", "[mapgen_rivers] You are going to generate a very large grid (>4M nodes). If you experience problems, you should increase blocksize or reduce map size.")
end
local seed = tonumber(minetest.get_mapgen_setting("seed"))
local seed = tonumber(minetest.get_mapgen_setting("seed"):sub(-10))
np_base.seed = (np_base.seed or 0) + seed
local nobj_base = PerlinNoiseMap(np_base, {x=size.x, y=1, z=size.y})