mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-02 20:13:54 +01:00
//maze, //maze3d: Fix crash if no arguments are specified
This commit is contained in:
parent
f7a5e223d4
commit
b962ace8a8
@ -36,6 +36,7 @@ Note to self: See the bottom of this file for the release template text.
|
|||||||
- Cloud wand: Improve chat message 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
|
- 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
|
- `//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)
|
## v1.12: The selection tools update (26th June 2021)
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
local wea = worldeditadditions
|
||||||
local we_c = worldeditadditions_commands
|
local we_c = worldeditadditions_commands
|
||||||
|
|
||||||
local function parse_params_maze(params_text, is_3d)
|
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"
|
return false, "No arguments specified"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user