Module:Inventory slot/Aliases: Difference between revisions
m ... |
m The debug message for the Script error things seems to point to a table.insert call somewhere around here getting nil instead of a table. Fixing that, albeit inefficiently. |
||
| Line 222: | Line 222: | ||
} | } | ||
for _, effect in ipairs( effects ) do | for _, effect in ipairs( effects ) do | ||
table.insert( aliases['Any Potion'], 'Potion of ' .. effect ) | table.insert( aliases['Any Potion'] or {}, 'Potion of ' .. effect ) | ||
table.insert( aliases['Any Splash Potion'], 'Splash Potion of ' .. effect ) | table.insert( aliases['Any Splash Potion'] or {}, 'Splash Potion of ' .. effect ) | ||
table.insert( aliases['Any Lingering Potion'], 'Lingering Potion of ' .. effect ) | table.insert( aliases['Any Lingering Potion'] or {}, 'Lingering Potion of ' .. effect ) | ||
end | end | ||
aliases['Any Potion'] = table.concat( aliases['Any Potion'], ';' ) | aliases['Any Potion'] = table.concat( aliases['Any Potion'], ';' ) | ||