summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Inheritance
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-19 16:03:45 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-19 16:03:45 -0500
commitcb6f6fe19d51acd995e33bc04c3bf243c05e34da (patch)
tree3454b25d66ce0ba102184a0b9712af729471fbf2 /src/StardewModdingAPI/Inheritance
parentbff59aacba9f97fe90b89d2640b56be57e3866e5 (diff)
downloadSMAPI-cb6f6fe19d51acd995e33bc04c3bf243c05e34da.tar.gz
SMAPI-cb6f6fe19d51acd995e33bc04c3bf243c05e34da.tar.bz2
SMAPI-cb6f6fe19d51acd995e33bc04c3bf243c05e34da.zip
fix race condition where GameLoaded event was sometime fired before the game was ready
Diffstat (limited to 'src/StardewModdingAPI/Inheritance')
-rw-r--r--src/StardewModdingAPI/Inheritance/SGame.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Inheritance/SGame.cs b/src/StardewModdingAPI/Inheritance/SGame.cs
index 3471d01b..ed5df125 100644
--- a/src/StardewModdingAPI/Inheritance/SGame.cs
+++ b/src/StardewModdingAPI/Inheritance/SGame.cs
@@ -316,6 +316,10 @@ namespace StardewModdingAPI.Inheritance
// add FPS to debug output
SGame.QueueDebugMessage($"FPS: {SGame.FramesPerSecond}");
+ // raise game loaded
+ if (this.FirstUpdate)
+ GameEvents.InvokeGameLoaded();
+
// update SMAPI events
this.UpdateEventCalls();