//airapply: fix undefined variables

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 20:01:38 +01:00
parent 47303acac1
commit 1c8d572bb8
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -43,7 +43,7 @@ worldedit.register_command("airapply", {
end,
func = function(name, cmd, args_parsed)
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
local pos1, pos2 = worldeditadditions.Vector3.sort(
@ -56,7 +56,7 @@ worldedit.register_command("airapply", {
pos1, pos2,
function()
cmd.func(name, worldeditadditions.table.unpack(args_parsed))
end, args
end, args_parsed
)