From 7e03d6be1d54736e193b1c559fb0df36eb179531 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 13 Oct 2018 16:19:16 +0100 Subject: [PATCH] Added some debug Code --- modules/ExpGamingLib/control.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ExpGamingLib/control.lua b/modules/ExpGamingLib/control.lua index ce382909..44f6cf69 100644 --- a/modules/ExpGamingLib/control.lua +++ b/modules/ExpGamingLib/control.lua @@ -270,7 +270,8 @@ end function table.autokey(tbl,str) local _return = {} for key,value in pairs(tbl) do - if string.contains(string.lower(key),string.lower(str)) then table.insert(_return,value) end + if ExpLib.is_type(key,'string') and string.contains(string.lower(key),string.lower(str)) then table.insert(_return,value) end + if not ExpLib.is_type(key,'string') then log(serpent.line(tbl)) end end return _return[1] or false end