summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/BuildingListChangedEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/BuildingListChangedEventArgs.cs')
-rw-r--r--src/SMAPI/Events/BuildingListChangedEventArgs.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Events/BuildingListChangedEventArgs.cs b/src/SMAPI/Events/BuildingListChangedEventArgs.cs
index 0237342f..74f37710 100644
--- a/src/SMAPI/Events/BuildingListChangedEventArgs.cs
+++ b/src/SMAPI/Events/BuildingListChangedEventArgs.cs
@@ -21,6 +21,9 @@ namespace StardewModdingAPI.Events
/// <summary>The buildings removed from the location.</summary>
public IEnumerable<Building> Removed { get; }
+ /// <summary>Whether this is the location containing the local player.</summary>
+ public bool IsCurrentLocation => object.ReferenceEquals(this.Location, Game1.player?.currentLocation);
+
/*********
** Public methods