//maze, //maze3d: Fix crash if no arguments are specified

This commit is contained in:
Starbeamrainbowlabs 2021-12-26 22:45:37 +00:00
parent f7a5e223d4
commit b962ace8a8
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,7 @@ Note to self: See the bottom of this file for the release template text.
- Cloud wand: Improve chat message text
- Fix `bonemeal` mod detection to look for the global `bonemeal`, not whether the `bonemeal` mod name has been loaded
- `//walls`: Prevent crash if not parameters are specified by defaulting to `dirt` as the replace_node
- `//maze`, `//maze3d`: Fix crash if no arguments are specified
## v1.12: The selection tools update (26th June 2021)

View File

@ -1,7 +1,10 @@
local wea = worldeditadditions
local we_c = worldeditadditions_commands
local function parse_params_maze(params_text, is_3d)
if not params_text then
if not params_text then params_text = "" end
params_text = wea.trim(params_text)
if #params_text == 0 then
return false, "No arguments specified"
end