mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-04 15:23:02 +00:00
//airapply: fix undefined variables
This commit is contained in:
parent
47303acac1
commit
1c8d572bb8
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ worldedit.register_command("airapply", {
|
||||||
end,
|
end,
|
||||||
func = function(name, cmd, args_parsed)
|
func = function(name, cmd, args_parsed)
|
||||||
if not minetest.check_player_privs(name, cmd.privs) then
|
if not minetest.check_player_privs(name, cmd.privs) then
|
||||||
return false, "Your privileges are insufficient to execute the command '"..cmd_name.."'."
|
return false, "Your privileges are insufficient to execute the command '"..cmd.."'."
|
||||||
end
|
end
|
||||||
|
|
||||||
local pos1, pos2 = worldeditadditions.Vector3.sort(
|
local pos1, pos2 = worldeditadditions.Vector3.sort(
|
||||||
|
@ -56,7 +56,7 @@ worldedit.register_command("airapply", {
|
||||||
pos1, pos2,
|
pos1, pos2,
|
||||||
function()
|
function()
|
||||||
cmd.func(name, worldeditadditions.table.unpack(args_parsed))
|
cmd.func(name, worldeditadditions.table.unpack(args_parsed))
|
||||||
end, args
|
end, args_parsed
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue