Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Fix call to non-existent function
(Update for v1.1)
(Fix call to non-existent function)
Line 212: Line 212:
for i, tier in ipairs(tiers) do
for i, tier in ipairs(tiers) do
local tierName = potionName..' '..tier
local tierName = potionName..' '..tier
local potion = p.getItemByName(tierName)
local potion = p.getItem(tierName)
if potion ~= nil then
if potion ~= nil then
table.insert(resultPart, '\r\n|-')
table.insert(resultPart, '\r\n|-')