mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 13:34:05 +02:00
//floodfill: Fix crash
This commit is contained in:
parent
8209adc696
commit
ccc86e78ae
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user