summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/SGame.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-03-11 17:28:39 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-03-11 17:28:39 -0500
commit95e519796773a2ef17ec482e27cd4403282e2cd1 (patch)
treee58e96ea22c3c70432b5d4ada8afb7d0b6efb574 /src/StardewModdingAPI/Framework/SGame.cs
parentd881f568565f8a12025e013cf92eaa025aac8c7c (diff)
downloadSMAPI-95e519796773a2ef17ec482e27cd4403282e2cd1.tar.gz
SMAPI-95e519796773a2ef17ec482e27cd4403282e2cd1.tar.bz2
SMAPI-95e519796773a2ef17ec482e27cd4403282e2cd1.zip
fix SaveEvents.AfterLoad being raised during the new-game intro before the player is initialised
Diffstat (limited to 'src/StardewModdingAPI/Framework/SGame.cs')
-rw-r--r--src/StardewModdingAPI/Framework/SGame.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs
index 5edb103e..d551ff5b 100644
--- a/src/StardewModdingAPI/Framework/SGame.cs
+++ b/src/StardewModdingAPI/Framework/SGame.cs
@@ -1094,7 +1094,7 @@ namespace StardewModdingAPI.Framework
}
// save loaded event
- if (Game1.hasLoadedGame && !SaveGame.IsProcessing/*still loading save*/ && this.AfterLoadTimer >= 0)
+ if (Constants.IsSaveLoaded && !SaveGame.IsProcessing/*still loading save*/ && this.AfterLoadTimer >= 0)
{
if (this.AfterLoadTimer == 0)
{