mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
//maze: Fix seed when generating multiple mazes in the same second
This commit is contained in:
parent
cce27525cc
commit
98bf0ef386
2 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ Note to self: See the bottom of this file for the release template text.
|
|||
- `//maze`, `//maze3d`:
|
||||
- Fix generated maze not reaching the very edge of the defined region
|
||||
- Fix crash if no arguments are specified
|
||||
- Fix automatic seed when generating many mazes in the same second (e.g. with `//for`, `//many`)
|
||||
- `//convolve`: Fix those super tall pillars appearing randomly
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ local function parse_params_maze(params_text, is_3d)
|
|||
local parts = worldeditadditions.split_shell(params_text)
|
||||
|
||||
local replace_node = parts[1]
|
||||
local seed = os.time()
|
||||
local seed = os.time() * math.random()
|
||||
local path_length = 2
|
||||
local path_width = 1
|
||||
local path_depth = 1
|
||||
|
|
Loading…
Reference in a new issue