mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Added some debug Code
This commit is contained in:
@@ -270,7 +270,8 @@ end
|
|||||||
function table.autokey(tbl,str)
|
function table.autokey(tbl,str)
|
||||||
local _return = {}
|
local _return = {}
|
||||||
for key,value in pairs(tbl) do
|
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
|
end
|
||||||
return _return[1] or false
|
return _return[1] or false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user