Module:Items/UseTables: Difference between revisions

fixed formatting hopefully
(Trying a slightly different format to hopefully fix a lack of linebreaks that's happening on FEZ use table for some reason.)
(fixed formatting hopefully)
Line 437: Line 437:
     end
     end
     result = result..'||'
     result = result..'||'
     for i, mat in pairs(row.mats) do
     for i, mat in Shared.skpairs(row.mats) do
       local matID = mat.id ~= nil and mat.id or mat[1]
       local matID = mat.id ~= nil and mat.id or mat[1]
       local matQty = mat.qty ~= nil and mat.qty or mat[2]
       local matQty = mat.qty ~= nil and mat.qty or mat[2]
       matItem = Items.getItemByID(matID)
       matItem = Items.getItemByID(matID)
       if i > 1 then result = result..'\r\n\r\n' end
       if i > 1 then result = result..'<br/>' end
       result = result..Icons.Icon({matItem.name, type='item', qty=matQty})
       result = result..Icons.Icon({matItem.name, type='item', qty=matQty})
     end
     end