//maze: Fix seed when generating multiple mazes in the same second

This commit is contained in:
Starbeamrainbowlabs 2021-12-31 14:02:53 +00:00
parent cce27525cc
commit 98bf0ef386
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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