17,097
edits
(_getPurchaseName: Support itemCharges/gloves) |
(Fix itemCharges reference) |
||
Line 86: | Line 86: | ||
end | end | ||
elseif purch.contains.itemCharges ~= nil and not Shared.tableIsEmpty(purch.contains.itemCharges) then | elseif purch.contains.itemCharges ~= nil and not Shared.tableIsEmpty(purch.contains.itemCharges) then | ||
local item = Items.getItemByID(purch.contains.itemCharges | local item = Items.getItemByID(purch.contains.itemCharges.id) | ||
if item ~= nil then | if item ~= nil then | ||
return item.name | return item.name |