Fixed error caused by TMTrainer Items inside Crane games
This commit is contained in:
1 parent
ff618432ac
commit
04292753ff
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user