From d2254615ce74682abaccf8a6d92b89afde39723e Mon Sep 17 00:00:00 2001 From: Jelle Meeus Date: Tue, 6 Aug 2024 14:50:06 +0200 Subject: [PATCH] move UpdateItemIndex out of loop --- DKPServer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DKPServer.lua b/DKPServer.lua index fd19db4..c454981 100644 --- a/DKPServer.lua +++ b/DKPServer.lua @@ -127,9 +127,9 @@ local function OnLootFrameOpen(event, packet, player) session:AddItemById(loot_data.id) loot:RemoveItem(loot_data.id) nItems = nItems - 1 - loot:UpdateItemIndex() end end + loot:UpdateItemIndex() loot:SetUnlootedCount(nItems) -- update loot item count end