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
@@ -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