Module:ItemData: Difference between revisions

m fixed null components
m fixed retrieval of component name
Line 81: Line 81:
if(components == nil) then return nil end
if(components == nil) then return nil end
local component = get_json_item(components[1])
local component_key = components[1]
local component = data[component_key]
if (component == nil) then return nil end
if (component == nil) then return nil end