From dae12c16e5ecb88e8043272c9d8ffdc88bc351ca Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 29 Dec 2018 18:31:23 -0500 Subject: add IsCurrentLocation event arg to World events --- src/SMAPI/Events/DebrisListChangedEventArgs.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/SMAPI/Events/DebrisListChangedEventArgs.cs') diff --git a/src/SMAPI/Events/DebrisListChangedEventArgs.cs b/src/SMAPI/Events/DebrisListChangedEventArgs.cs index 68328885..61b7590a 100644 --- a/src/SMAPI/Events/DebrisListChangedEventArgs.cs +++ b/src/SMAPI/Events/DebrisListChangedEventArgs.cs @@ -20,6 +20,9 @@ namespace StardewModdingAPI.Events /// The debris removed from the location. public IEnumerable Removed { get; } + /// Whether this is the location containing the local player. + public bool IsCurrentLocation => object.ReferenceEquals(this.Location, Game1.player?.currentLocation); + /********* ** Public methods -- cgit