Module:ItemData: Difference between revisions

added function to get component name
m return empty string if no component found
Line 78: Line 78:
local components = item['Components']
local components = item['Components']
if(item == nil) then return "Components Not Found" end
--return empty string if no component found
if(item == nil) then return "" end
local component = get_json_item(components[1])
local component = get_json_item(components[1])