From 07513d8e525acc84c560fcbbb121816061f16000 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Fri, 25 Jun 2021 10:09:52 +0200 Subject: [PATCH] fixes --- mods/CORE/mcl_commands/api.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_commands/api.lua b/mods/CORE/mcl_commands/api.lua index f5e3c18a0..c30d74d84 100644 --- a/mods/CORE/mcl_commands/api.lua +++ b/mods/CORE/mcl_commands/api.lua @@ -92,8 +92,12 @@ mcl_commands.types = { function mcl_commands.match_param(table, index, type, params) local typedef = mcl_commands.types[type] - local params = {} - typedef.func() + if typedef.lengh > 1 then + return + else + local params = {} + typedef.func() + end end mcl_commands.registered_commands = {}