16,985
edits
(getEntities: Allow passing of table as entityType, and relax checks on data) |
(getEntities: Further fixes) |
||
Line 158: | Line 158: | ||
entData = entityType | entData = entityType | ||
end | end | ||
if entData == nil and type(entityType) == 'string' then | |||
error('No such entity type: ' .. entityType, 2) | error('No such entity type: ' .. entityType, 2) | ||
elseif type(entData) ~= 'table' then | elseif type(entData) ~= 'table' then |