From 88a971fe6f2983368801d5f083417ec2a7b06cba Mon Sep 17 00:00:00 2001 From: AFCMS Date: Mon, 8 Mar 2021 16:54:57 +0100 Subject: [PATCH] fix stupid code duplication --- mods/MISC/mcl_commands/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MISC/mcl_commands/init.lua b/mods/MISC/mcl_commands/init.lua index 3167c33fe..223fcdd91 100644 --- a/mods/MISC/mcl_commands/init.lua +++ b/mods/MISC/mcl_commands/init.lua @@ -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))