summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-05-17 21:25:18 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-05-17 21:25:18 -0400
commit37a2e345074449b02d173c5e9a6984f2f6e11789 (patch)
tree83f4d55c33051655913ed0fb8af0a6832ea58ab8
parentbc1e17bc8c0ab23420e000d06a99289bbfe9b530 (diff)
downloadSMAPI-37a2e345074449b02d173c5e9a6984f2f6e11789.tar.gz
SMAPI-37a2e345074449b02d173c5e9a6984f2f6e11789.tar.bz2
SMAPI-37a2e345074449b02d173c5e9a6984f2f6e11789.zip
also raise location-list-changed on load
-rw-r--r--src/StardewModdingAPI/Framework/SGame.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs
index 87f46523..3d421a37 100644
--- a/src/StardewModdingAPI/Framework/SGame.cs
+++ b/src/StardewModdingAPI/Framework/SGame.cs
@@ -446,6 +446,10 @@ namespace StardewModdingAPI.Framework
LocationEvents.InvokeCurrentLocationChanged(this.Monitor, this.PreviousGameLocation, Game1.currentLocation);
}
+ // raise location list changed
+ if (this.GetHash(Game1.locations) != this.PreviousGameLocations)
+ LocationEvents.InvokeLocationsChanged(this.Monitor, Game1.locations);
+
// raise player changed
if (Game1.player != this.PreviousFarmer)
PlayerEvents.InvokeFarmerChanged(this.Monitor, this.PreviousFarmer, Game1.player);
@@ -453,10 +457,6 @@ namespace StardewModdingAPI.Framework
// raise events that shouldn't be triggered on initial load
if (Game1.uniqueIDForThisGame == this.PreviousSaveID)
{
- // raise location list changed
- if (this.GetHash(Game1.locations) != this.PreviousGameLocations)
- LocationEvents.InvokeLocationsChanged(this.Monitor, Game1.locations);
-
// raise player leveled up a skill
if (Game1.player.combatLevel != this.PreviousCombatLevel)
PlayerEvents.InvokeLeveledUp(this.Monitor, EventArgsLevelUp.LevelType.Combat, Game1.player.combatLevel);