Skip to content

Commit

Permalink
Fix sorting by source
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jul 17, 2024
1 parent 1a706a9 commit 75520c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Windows/ClientWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function LootReserve.Client:UpdateLootList()
if child.Loot then
for lootIndex, loot in ipairs(child.Loot) do
if LootReserve.ItemCache(loot):GetID() == item:GetID() then
return id * 10000 + childIndex * 100 + lootIndex;
return (10^8)*childIndex + (10^6)*lootIndex + id;
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion Windows/ServerWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function LootReserve.Server:UpdateReserveList(lockdown)
if child.Loot then
for lootIndex, loot in ipairs(child.Loot) do
if LootReserve.ItemCache(loot) == item then
return id * 10000 + childIndex * 100 + lootIndex;
return (10^8)*childIndex + (10^6)*lootIndex + id;
end
end
end
Expand Down

0 comments on commit 75520c6

Please sign in to comment.