summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Inheritance/SGame.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Inheritance/SGame.cs')
-rw-r--r--src/StardewModdingAPI/Inheritance/SGame.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Inheritance/SGame.cs b/src/StardewModdingAPI/Inheritance/SGame.cs
index f23f3212..69c20244 100644
--- a/src/StardewModdingAPI/Inheritance/SGame.cs
+++ b/src/StardewModdingAPI/Inheritance/SGame.cs
@@ -935,9 +935,10 @@ namespace StardewModdingAPI.Inheritance
IClickableMenu newMenu = Game1.activeClickableMenu;
// raise save events
- if (newMenu is SaveGameMenu)
+ // (saving is performed by SaveGameMenu; on days when the player shipping something, ShippingMenu wraps SaveGameMenu)
+ if (newMenu is SaveGameMenu || newMenu is ShippingMenu)
SaveEvents.InvokeBeforeSave(this.Monitor);
- else if (previousMenu is SaveGameMenu)
+ else if (previousMenu is SaveGameMenu || previousMenu is ShippingMenu)
SaveEvents.InvokeAfterSave(this.Monitor);
// raise menu events