From d7e0a700e009f45450bab033fc51e69d7aa45072 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Tue, 14 Feb 2023 04:21:40 -0500 Subject: [PATCH] limit recent items list to size 8 --- eid_api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/eid_api.lua b/eid_api.lua index 35841d35..2ca4e392 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1807,6 +1807,7 @@ function EID:evaluateQueuedItems() elseif player.QueuedItem.Item.Type ~= ItemType.ITEM_TRINKET then -- Put non-active item pickups into the recent item list, for printing in the Item Reminder table.insert(EID.RecentlyTouchedItems[i], player.QueuedItem.Item.ID) + if (#EID.RecentlyTouchedItems[i] > 8) then table.remove(EID.RecentlyTouchedItems[i], 1) end end end end