fixed error with more then 1 page
This commit is contained in:
@@ -49,9 +49,11 @@ function AtlasLoot:ShowWishList(listType,arg2,arg3)
|
|||||||
table.insert(AtlasLoot_CurrentWishList["Show"], {Name = "Page "..n})
|
table.insert(AtlasLoot_CurrentWishList["Show"], {Name = "Page "..n})
|
||||||
end
|
end
|
||||||
for i,v in ipairs(AtlasLootWishList[listType][arg2]) do
|
for i,v in ipairs(AtlasLootWishList[listType][arg2]) do
|
||||||
local itemNum = v[1];
|
local itemNum
|
||||||
if v[1] >= 31 then
|
if (v[1]-(math.floor(v[1]/30)*30)) == 0 then
|
||||||
itemNum = v[1]-(math.floor(v[1]/30)*30);
|
itemNum = 30;
|
||||||
|
else
|
||||||
|
itemNum = v[1]-(math.floor(v[1]/30)*30);
|
||||||
end
|
end
|
||||||
table.insert(AtlasLoot_CurrentWishList["Show"][math.ceil(v[1]/30)], {itemNum,v[2],v[3],v[4],v[5],v[6],v[7],v[8]});
|
table.insert(AtlasLoot_CurrentWishList["Show"][math.ceil(v[1]/30)], {itemNum,v[2],v[3],v[4],v[5],v[6],v[7],v[8]});
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user