From 3c46cfb464cb6ac8a1502306553b68bf2b830b2e Mon Sep 17 00:00:00 2001 From: Anonomit Date: Thu, 28 Nov 2024 17:41:09 -0500 Subject: [PATCH] Importing is now better at correcting invalid items --- Windows/ServerImportWindow.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Windows/ServerImportWindow.lua b/Windows/ServerImportWindow.lua index 0e3261c..fe8e0ba 100644 --- a/Windows/ServerImportWindow.lua +++ b/Windows/ServerImportWindow.lua @@ -595,8 +595,9 @@ function LootReserve.Server.Import:SessionSettingsUpdated() itemID = 0; end if LootReserve.Data:IsTokenReward(itemID) and not LootReserve.Server:GetNewSessionItemConditions()[itemID] then - itemID = LootReserve.Data:GetToken(itemID) + itemID = LootReserve.Data:GetToken(itemID); end + itemID = LootReserve.Data:GetIntendedItem(itemID); if not row.ItemNames[itemID] then row.ItemNames[itemID] = {Count = 0, Name = row[itemColumn]}; end @@ -604,8 +605,9 @@ function LootReserve.Server.Import:SessionSettingsUpdated() end else if LootReserve.Data:IsTokenReward(itemID) then - itemID = LootReserve.Data:GetToken(itemID) + itemID = LootReserve.Data:GetToken(itemID); end + itemID = LootReserve.Data:GetIntendedItem(itemID); row.ItemIDs[itemID] = row.ItemIDs[itemID] and row.ItemIDs[itemID] + 1 or 1; end end