limit recent items list to size 8

This commit is contained in:
Buurazu authored and GitHub committed 2023-02-14 04:21:40 -05:00
1 parent 315ba762e6
commit d7e0a700e0
1 file changed
+1
+1
View File
@@ -1807,6 +1807,7 @@ function EID:evaluateQueuedItems()
elseif player.QueuedItem.Item.Type ~= ItemType.ITEM_TRINKET then 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 -- 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) 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 end
end end