Fixed item collection feature not updating automatically

This commit is contained in:
Wofsauge committed 2023-10-26 23:20:58 +02:00
1 parent 820487bfd8
commit 71a81add3b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1560,7 +1560,7 @@ end
-- Returns true if an item needs to be collected for the collection page
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
return not EID.SaveGame[EID.Config["SaveGameNumber"]].ItemCollection[itemID]
return EID.SaveGame[EID.Config["SaveGameNumber"]].ItemNeedsPickup[itemID]
end
-- Updates the item collection state of the players, based on the QueuedItem value.