Fixed error caused by TMTrainer Items inside Crane games

This commit is contained in:
Wofsauge committed 2025-10-17 16:35:38 +02:00
1 parent ff618432ac
commit 04292753ff
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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