mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-02-17 08:33:42 +01:00
//floodfill: Fix crash
This commit is contained in:
@ -17,6 +17,7 @@ local safe_region, check_region, reset_pending = dofile(minetest.get_modpath("wo
|
|||||||
-- ██ ███████ ██████ ██████ ██████ ██ ██ ███████ ███████
|
-- ██ ███████ ██████ ██████ ██████ ██ ██ ███████ ███████
|
||||||
|
|
||||||
local function parse_params_floodfill(params_text)
|
local function parse_params_floodfill(params_text)
|
||||||
|
if not params_text then params_text = "" end
|
||||||
local found, _, replace_node, radius = params_text:find("([a-z:_\\-]+)%s+([0-9]+)")
|
local found, _, replace_node, radius = params_text:find("([a-z:_\\-]+)%s+([0-9]+)")
|
||||||
|
|
||||||
if found == nil then
|
if found == nil then
|
||||||
|
Reference in New Issue
Block a user