//subdivide: Fix referencing undefined global variable

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 18:06:44 +01:00
parent 92451cf125
commit f7cda8c817
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ worldedit.register_command("subdivide", {
local cmd_args_parsed = {cmd.parse(args)}
local success = table.remove(cmd_args_parsed, 1)
if not success then
return false, cmd_name..": "..(parsed[1] or "invalid usage")
return false, cmd_name..": "..(cmd_args_parsed[1] or "invalid usage")
end
wea.subdivide(pos1, pos2, chunk_size, function(cpos1, cpos2, stats)