mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-28 08:17:30 +01:00
//subdivide: fix undefined local variable
This commit is contained in:
parent
ac954abaea
commit
15417354c6
@ -10,7 +10,7 @@ local function will_trigger_saferegion(name, cmd_name, args)
|
||||
|
||||
local parsed = {def.parse(args)}
|
||||
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
|
||||
local success, result = def.nodes_needed(name, unpack(parsed))
|
||||
|
Loading…
Reference in New Issue
Block a user