From 1a00ec85820f8f368d069bf8da7eb96235028fc8 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Tue, 30 Jul 2024 07:01:34 -0400 Subject: [PATCH] initialize actives table for all players better --- main.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main.lua b/main.lua index 118a0c1f..3e4bbef5 100644 --- a/main.lua +++ b/main.lua @@ -1621,12 +1621,10 @@ local function AddActiveItemProgress(player, isD4) local maxSlot = 3 if isD4 then maxSlot = 1 end for i = 0, maxSlot do - local itemID = tostring(player:GetActiveItem(i)) - if itemID ~= "0" then - if not activesTable[itemID] then - activesTable[itemID] = 0 - end - activesTable[itemID] = activesTable[itemID] + 1 + local itemIDStr = tostring(player:GetActiveItem(i)) + if itemIDStr ~= "0" then + EID:InitActiveItemInteraction(itemIDStr) + activesTable[itemIDStr] = activesTable[itemIDStr] + 1 end end end