//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

View file

@ -93,7 +93,7 @@ worldedit.register_command("subdivide", {
local cmd_args_parsed = {cmd.parse(args)} local cmd_args_parsed = {cmd.parse(args)}
local success = table.remove(cmd_args_parsed, 1) local success = table.remove(cmd_args_parsed, 1)
if not success then 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 end
wea.subdivide(pos1, pos2, chunk_size, function(cpos1, cpos2, stats) wea.subdivide(pos1, pos2, chunk_size, function(cpos1, cpos2, stats)