fix stupid code duplication

This commit is contained in:
AFCMS 2021-03-08 16:54:57 +01:00
parent 5425a01097
commit 88a971fe6f
1 changed files with 1 additions and 1 deletions

View File

@ -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))