2,869
edits
(Fix derp) |
m (Fix derp again) |
||
Line 17: | Line 17: | ||
local function getItemIcon(itemName, amount) | local function getItemIcon(itemName, amount) | ||
local iconFunc = iconTable[itemName] | |||
if iconFunc then | |||
return iconFunc(amount) | |||
else | |||
return Icons.Icon({itemName, type='item', qty = amount, notext=true}) | |||
end | |||
end | end | ||
edits