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
|
||||
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
|
||||
-- lua 5.2 or later
|
||||
return sub.func(table.unpack(params))
|
||||
|
|
Loading…
Reference in New Issue