diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-03 13:02:15 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-03 13:02:15 -0400 |
commit | c84310dfebafd3085dc418f3620154f9934865de (patch) | |
tree | d71d47797d2b2ad13371b7f9d562aa3e097d330e /src/StardewModdingAPI/Context.cs | |
parent | 482a91962ac02cf83c2647fd7e5ba8627bd0bb0b (diff) | |
parent | 0a2f7e52b9fc1e60fe491b8fd28cf8377f79290b (diff) | |
download | SMAPI-c84310dfebafd3085dc418f3620154f9934865de.tar.gz SMAPI-c84310dfebafd3085dc418f3620154f9934865de.tar.bz2 SMAPI-c84310dfebafd3085dc418f3620154f9934865de.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/Context.cs')
-rw-r--r-- | src/StardewModdingAPI/Context.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Context.cs b/src/StardewModdingAPI/Context.cs index 415b4aac..2da14eed 100644 --- a/src/StardewModdingAPI/Context.cs +++ b/src/StardewModdingAPI/Context.cs @@ -1,4 +1,5 @@ using StardewValley; +using StardewValley.Menus; namespace StardewModdingAPI { @@ -12,7 +13,7 @@ namespace StardewModdingAPI public static bool IsSaveLoaded => Game1.hasLoadedGame && !string.IsNullOrEmpty(Game1.player.name); /// <summary>Whether the game is currently writing to the save file.</summary> - public static bool IsSaving => SaveGame.IsProcessing; + public static bool IsSaving => SaveGame.IsProcessing && (Game1.activeClickableMenu is SaveGameMenu || Game1.activeClickableMenu is ShippingMenu); // IsProcessing is never set to false on Linux/Mac /// <summary>Whether the game is currently running the draw loop.</summary> public static bool IsInDrawLoop { get; set; } |