mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
//subdivide: fix undefined local variable
This commit is contained in:
parent
ac954abaea
commit
15417354c6
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ local function will_trigger_saferegion(name, cmd_name, args)
|
||||||
|
|
||||||
local parsed = {def.parse(args)}
|
local parsed = {def.parse(args)}
|
||||||
local parse_success = table.remove(parsed, 1)
|
local parse_success = table.remove(parsed, 1)
|
||||||
if not success then return nil, table.remove(parsed, 1) end
|
if not parse_success then return nil, table.remove(parsed, 1) end
|
||||||
|
|
||||||
if not def.nodes_needed then return false end
|
if not def.nodes_needed then return false end
|
||||||
local success, result = def.nodes_needed(name, unpack(parsed))
|
local success, result = def.nodes_needed(name, unpack(parsed))
|
||||||
|
|
Loading…
Reference in a new issue