From 3af516e5b9ee9531cf4da7417ac03e7944289e0a Mon Sep 17 00:00:00 2001 From: Rob Anderson Date: Tue, 3 Sep 2024 19:09:20 -0600 Subject: [PATCH] Fix minor row stacking bug (#98) Co-authored-by: Rob Anderson --- Features/ItemLoot.lua | 3 ++- LootDisplay.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Features/ItemLoot.lua b/Features/ItemLoot.lua index 046ac5d..143d571 100644 --- a/Features/ItemLoot.lua +++ b/Features/ItemLoot.lua @@ -46,6 +46,7 @@ local function showItemLoot(msg, itemLink) if not G_RLF.db.global.itemQualityFilter[itemQuality] then return end + local itemId = itemLink:match("Hitem:(%d+)") -- if G_RLF.db.global.onlyBetterThanEquipped and itemEquipLoc then -- local equippedLink = GetInventoryItemLink("player", equipLocToSlotID[itemEquipLoc]) -- if equippedLink then @@ -58,7 +59,7 @@ local function showItemLoot(msg, itemLink) -- end -- end - G_RLF.LootDisplay:ShowLoot(itemLink, itemLink, itemTexture, amount) + G_RLF.LootDisplay:ShowLoot(itemId, itemLink, itemTexture, amount) end function ItemLoot:CHAT_MSG_LOOT(_, ...) diff --git a/LootDisplay.lua b/LootDisplay.lua index 0cf0417..698d1ed 100644 --- a/LootDisplay.lua +++ b/LootDisplay.lua @@ -678,9 +678,9 @@ leaseRow = function(key) end end end + row.key = key rows:push(row) - row.key = key row:Show() -- Position the new row at the bottom of the frame