diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-05-09 23:03:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-13 15:44:57 -0400 |
commit | e3a2c56a6d8c827240a2bd4ead86c7b412e826ab (patch) | |
tree | 55369552c1859f93002d0a223ce7a5c0272ef565 | |
parent | 602c8d75db0a0648c9fc4eb518094015fe9712ab (diff) | |
download | SMAPI-e3a2c56a6d8c827240a2bd4ead86c7b412e826ab.tar.gz SMAPI-e3a2c56a6d8c827240a2bd4ead86c7b412e826ab.tar.bz2 SMAPI-e3a2c56a6d8c827240a2bd4ead86c7b412e826ab.zip |
fix 'location list changed' verbose log not correctly listing changes
-rw-r--r-- | docs/release-notes.md | 1 | ||||
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index 6c9636c7..fb6be0c0 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -9,6 +9,7 @@ These changes have not been released yet. * For modders: * `this.Monitor.Log` now defaults to the `Trace` log level instead of `Debug`. + * Fixed 'location list changed' verbose log not correctly listing changes. ## 2.11.2 Released 23 April 2019 for Stardew Valley 1.3.36. diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 9818314a..704eb6bc 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -705,8 +705,8 @@ namespace StardewModdingAPI.Framework if (this.Monitor.IsVerbose) { - string addedText = this.Watchers.LocationsWatcher.Added.Any() ? string.Join(", ", added.Select(p => p.Name)) : "none"; - string removedText = this.Watchers.LocationsWatcher.Removed.Any() ? string.Join(", ", removed.Select(p => p.Name)) : "none"; + string addedText = added.Any() ? string.Join(", ", added.Select(p => p.Name)) : "none"; + string removedText = removed.Any() ? string.Join(", ", removed.Select(p => p.Name)) : "none"; this.Monitor.Log($"Context: location list changed (added {addedText}; removed {removedText}).", LogLevel.Trace); } |