mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
//subdivide: Fix referencing undefined global variable
This commit is contained in:
parent
92451cf125
commit
f7cda8c817
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue