mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
//maze, //maze3d: Fix crash if no arguments are specified
This commit is contained in:
parent
f7a5e223d4
commit
b962ace8a8
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue