forked from VoxeLibre/VoxeLibre
fix stupid code duplication
This commit is contained in:
parent
5425a01097
commit
88a971fe6f
|
@ -207,7 +207,7 @@ function mcl_commands.build(func)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local can_execute, missing_privs = minetest.check_player_privs(name, sub.privs)
|
local can_execute, missing_privs = minetest.check_player_privs(name, sub.privs)
|
||||||
if minetest.check_player_privs(name, sub.privs) then
|
if can_execute then
|
||||||
if table.unpack then
|
if table.unpack then
|
||||||
-- lua 5.2 or later
|
-- lua 5.2 or later
|
||||||
return sub.func(table.unpack(params))
|
return sub.func(table.unpack(params))
|
||||||
|
|
Loading…
Reference in New Issue