summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SGame.cs
diff options
context:
space:
mode:
authorwartech0 <wartech0@hotmail.com>2019-12-29 08:06:02 -0600
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-31 16:19:43 -0500
commitaef1b8ac2898e147e6200fe257e8fdd82ee7fdbc (patch)
treede3026eeac70d90e729802b8213cbb4004f2dee9 /src/SMAPI/Framework/SGame.cs
parentdca60f42b2048d6b0b27517b9e7686665e61e9c2 (diff)
downloadSMAPI-aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc.tar.gz
SMAPI-aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc.tar.bz2
SMAPI-aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc.zip
Added the new ChestItemChanged event.
Diffstat (limited to 'src/SMAPI/Framework/SGame.cs')
-rw-r--r--src/SMAPI/Framework/SGame.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs
index 4774233e..564fec1d 100644
--- a/src/SMAPI/Framework/SGame.cs
+++ b/src/SMAPI/Framework/SGame.cs
@@ -702,6 +702,10 @@ namespace StardewModdingAPI.Framework
if (locState.Objects.IsChanged)
events.ObjectListChanged.Raise(new ObjectListChangedEventArgs(location, locState.Objects.Added, locState.Objects.Removed));
+ // chest items changed
+ if (locState.ChestItems.IsChanged)
+ events.ChestItemsChanged.Raise(new ChestItemChangedEventArgs(location, locState.ChestItems.Added, locState.ChestItems.Removed, locState.ChestItems.Key));
+
// terrain features changed
if (locState.TerrainFeatures.IsChanged)
events.TerrainFeatureListChanged.Raise(new TerrainFeatureListChangedEventArgs(location, locState.TerrainFeatures.Added, locState.TerrainFeatures.Removed));