Module:Inventory slot/Aliases: Difference between revisions
Ok, my previous edit apparently didn't cut it (viewing Stone Bricks), going to have to make everything table.insert-related have a failsafe. |
m Revert consecutive edits by AwesomeMan31415926 (talk): this module on its own works, so something else is breaking |
||
| Line 179: | Line 179: | ||
local name = color .. ' Firework Star' | local name = color .. ' Firework Star' | ||
aliases[name] = '[Firework Star]' .. name .. '[&7' .. color .. ']' | aliases[name] = '[Firework Star]' .. name .. '[&7' .. color .. ']' | ||
table.insert( aliases['Any Firework Star'] | table.insert( aliases['Any Firework Star'], aliases[name] ) | ||
for _, pattern in ipairs( patterns ) do | for _, pattern in ipairs( patterns ) do | ||
name = color .. ' ' .. pattern .. ' Banner' | name = color .. ' ' .. pattern .. ' Banner' | ||
| Line 222: | Line 222: | ||
} | } | ||
for _, effect in ipairs( effects ) do | for _, effect in ipairs( effects ) do | ||
table.insert( aliases['Any Potion'] | table.insert( aliases['Any Potion'], 'Potion of ' .. effect ) | ||
table.insert( aliases['Any Splash Potion'] | table.insert( aliases['Any Splash Potion'], 'Splash Potion of ' .. effect ) | ||
table.insert( aliases['Any Lingering Potion'] | table.insert( aliases['Any Lingering Potion'], 'Lingering Potion of ' .. effect ) | ||
end | end | ||
aliases['Any Potion'] = table.concat( aliases['Any Potion'], ';' ) | aliases['Any Potion'] = table.concat( aliases['Any Potion'], ';' ) | ||