From e6cca3689dc259d08f91637534537ded6b56b5f9 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sun, 16 Jun 2024 18:31:21 +0200 Subject: [PATCH] Fixed temporary items (like 3 dollar bill) being displayed in item reminder --- features/eid_api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/eid_api.lua b/features/eid_api.lua index 7d4e02cb..7cf3fb1c 100644 --- a/features/eid_api.lua +++ b/features/eid_api.lua @@ -2041,7 +2041,7 @@ function EID:UpdateAllPlayerPassiveItems() -- remove items the player no longer has. reverse itteration to make deletion easier for index = #EID.RecentlyTouchedItems[playerNum], 1, -1 do - if not player:HasCollectible(EID.RecentlyTouchedItems[playerNum][index]) then + if not player:HasCollectible(EID.RecentlyTouchedItems[playerNum][index], true) then table.remove(EID.RecentlyTouchedItems[playerNum], index) listUpdatedForPlayers[i] = true end @@ -2049,7 +2049,7 @@ function EID:UpdateAllPlayerPassiveItems() -- add items the player did get with non-standard methods (console command, item effects, etc...) for _, itemID in ipairs(passives) do - if player:HasCollectible(itemID) then + if player:HasCollectible(itemID, true) then local alreadyInList = false for _, heldItemID in ipairs(EID.RecentlyTouchedItems[playerNum]) do if itemID == heldItemID then