fix oopsie on modded item collection page check

This commit is contained in:
Buurazu authored and GitHub committed 2024-01-13 18:56:31 -05:00
1 parent da9cf9ddef
commit 078c9b8b5c
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ local game = Game()
-- 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 >= CollectibleType.NUM_COLLECTIBLES or game:GetVictoryLap() > 0 or game:GetSeeds():IsCustomRun() then return false end
if itemID > CollectibleType.NUM_COLLECTIBLES or game:GetVictoryLap() > 0 or game:GetSeeds():IsCustomRun() then return false end
return not Isaac.GetPersistentGameData():IsItemInCollection(itemID)
end