Module:ItemData: Difference between revisionsGive feedback
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 | local component_key = components[1] | ||
local component = data[component_key] | |||
if (component == nil) then return nil end | if (component == nil) then return nil end | ||