summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release-notes.md1
-rw-r--r--src/StardewModdingAPI/Context.cs3
2 files changed, 3 insertions, 1 deletions
diff --git a/release-notes.md b/release-notes.md
index df0a51da..bf9367e5 100644
--- a/release-notes.md
+++ b/release-notes.md
@@ -15,6 +15,7 @@ See [log](https://github.com/Pathoschild/SMAPI/compare/1.11...1.12).
For players:
* The installer now lets you choose the install path if you have multiple copies of the game, instead of using the first path found.
+* Fixed an issue where mods on Linux/Mac stopped working after the game saves.
For mod developers:
* Unknown mod manifest fields are now stored in `IManifest::ExtraFields`.
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; }