From 15417354c66e16c587accb60ba7f18a0e1649f24 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 6 Feb 2021 19:34:46 +0000 Subject: [PATCH] //subdivide: fix undefined local variable --- worldeditadditions_commands/commands/meta/subdivide.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_commands/commands/meta/subdivide.lua b/worldeditadditions_commands/commands/meta/subdivide.lua index 76702a5..cce8944 100644 --- a/worldeditadditions_commands/commands/meta/subdivide.lua +++ b/worldeditadditions_commands/commands/meta/subdivide.lua @@ -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))