Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
tweaking a thing to maybe hopefully fix the issues with memory?
(Fixed adding one too many items)
(tweaking a thing to maybe hopefully fix the issues with memory?)
Line 316: Line 316:
   local rowResult = {}
   local rowResult = {}
   for i = startID, startID + rowCount - 1, 1 do
   for i = startID, startID + rowCount - 1, 1 do
     local item = ItemData.Items[i + 1]
     local item = Items.getItemByID(startID)
     if item == nil then break end
     if item == nil then break end
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'