Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
i am very clever
(tweaking a thing to maybe hopefully fix the issues with memory?)
(i am very clever)
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 = Items.getItemByID(startID)
     local item = Items.getItemByID(i)
     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..']]'