From db6c62808d381d6d1fe67f024bfe078c9ef7f4e6 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 19 Nov 2021 17:31:20 -0500 Subject: [PATCH] detect low collectible counts as well as high --- eid_api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index a8741007..2b82c9ca 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -764,7 +764,8 @@ function EID:getSpindownResult(collectibleID) end function EID:GetMaxCollectibleID() - local id = CollectibleType.NUM_COLLECTIBLES-1 + --start a little lower than NUM_COLLECTIBLES, due to mods with outdated items.xmls that are missing newer items + local id = CollectibleType.NUM_COLLECTIBLES-17 local step = 16 while step > 0 do if EID.itemConfig:GetCollectible(id+step) ~= nil then