From 2c1814e6a2c9f62fca6b6d263e9656f74581d44a Mon Sep 17 00:00:00 2001 From: silent-destroyer Date: Wed, 24 Jan 2024 22:39:18 -0500 Subject: [PATCH] Fixed bug with items being received too fast * 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. --- src/Archipelago/ArchipelagoIntegration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Archipelago/ArchipelagoIntegration.cs b/src/Archipelago/ArchipelagoIntegration.cs index cadb579..c5eb96f 100644 --- a/src/Archipelago/ArchipelagoIntegration.cs +++ b/src/Archipelago/ArchipelagoIntegration.cs @@ -198,7 +198,7 @@ private IEnumerator 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; }