From 75520c63f6591fb5a13bed00a7f358e6ddefff23 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Wed, 17 Jul 2024 17:56:09 -0400 Subject: [PATCH] Fix sorting by source --- Windows/ClientWindow.lua | 2 +- Windows/ServerWindow.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows/ClientWindow.lua b/Windows/ClientWindow.lua index eeb0039..6bd312f 100644 --- a/Windows/ClientWindow.lua +++ b/Windows/ClientWindow.lua @@ -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 diff --git a/Windows/ServerWindow.lua b/Windows/ServerWindow.lua index aa88a33..4219c73 100644 --- a/Windows/ServerWindow.lua +++ b/Windows/ServerWindow.lua @@ -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