mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 13:34:05 +02:00
//subdivide: Fix referencing undefined global variable
This commit is contained in:
parent
92451cf125
commit
f7cda8c817
@ -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 New Issue
Block a user