Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fixed bug with items being received too fast
Browse files Browse the repository at this point in the history
* Fixed a race condition that caused items to be received too quickly if a new game was started more than once during a single session of the game being open.
  • Loading branch information
silent-destroyer committed Jan 25, 2024
1 parent aba0544 commit 2c1814e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Archipelago/ArchipelagoIntegration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private IEnumerator<bool> IncomingItemHandler() {
}

// Delay until a few seconds after connecting/screen transition
while (SpeedrunData.inGameTime < SceneLoaderPatches.TimeOfLastSceneTransition + 3.0f) {
while (SaveFile.GetFloat("playtime") < SceneLoaderPatches.TimeOfLastSceneTransition + 3.0f) {
yield return true;
}

Expand Down

0 comments on commit 2c1814e

Please sign in to comment.