From 04292753ff3f701750c6b2e89f36fbd3fa1e4bf9 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 17 Oct 2025 16:35:38 +0200 Subject: [PATCH] Fixed error caused by TMTrainer Items inside Crane games --- features/eid_api.lua | 2 +- features/eid_repentogon.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/eid_api.lua b/features/eid_api.lua index 68dce2ec..62eb611e 100644 --- a/features/eid_api.lua +++ b/features/eid_api.lua @@ -2262,7 +2262,7 @@ end ---@return boolean ---@diagnostic disable-next-line: duplicate-set-field function EID:requiredForCollectionPage(itemID) - if not EID.SaveGame or EID.Config["SaveGameNumber"] == 0 or itemID >= CollectibleType.NUM_COLLECTIBLES or game:GetVictoryLap() > 0 or game:GetSeeds():IsCustomRun() then return false end + if not EID.SaveGame or EID.Config["SaveGameNumber"] == 0 or itemID >= CollectibleType.NUM_COLLECTIBLES or itemID <= 0 or game:GetVictoryLap() > 0 or game:GetSeeds():IsCustomRun() then return false end return EID.SaveGame[EID.Config["SaveGameNumber"]].ItemNeedsPickup[itemID] end diff --git a/features/eid_repentogon.lua b/features/eid_repentogon.lua index 3b98c5bc..29a05cb6 100644 --- a/features/eid_repentogon.lua +++ b/features/eid_repentogon.lua @@ -22,7 +22,7 @@ local maxVanillaItemID = CollectibleType.NUM_COLLECTIBLES -- sanity backup -- REPENTOGON: Use PersistentGameData to determine item collection status -- Returns true if an item needs to be collected for the collection page function EID:requiredForCollectionPage(itemID) - if itemID >= maxVanillaItemID or game:GetVictoryLap() > 0 or game:GetSeeds():IsCustomRun() then return false end + if itemID >= maxVanillaItemID or itemID <= 0 or game:GetVictoryLap() > 0 or game:GetSeeds():IsCustomRun() then return false end return not Isaac.GetPersistentGameData():IsItemInCollection(itemID) end