fix 'location list changed' verbose log not correctly listing changes
This commit is contained in:
parent
602c8d75db
commit
e3a2c56a6d
|
@ -9,6 +9,7 @@ These changes have not been released yet.
|
||||||
|
|
||||||
* For modders:
|
* For modders:
|
||||||
* `this.Monitor.Log` now defaults to the `Trace` log level instead of `Debug`.
|
* `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
|
## 2.11.2
|
||||||
Released 23 April 2019 for Stardew Valley 1.3.36.
|
Released 23 April 2019 for Stardew Valley 1.3.36.
|
||||||
|
|
|
@ -705,8 +705,8 @@ namespace StardewModdingAPI.Framework
|
||||||
|
|
||||||
if (this.Monitor.IsVerbose)
|
if (this.Monitor.IsVerbose)
|
||||||
{
|
{
|
||||||
string addedText = this.Watchers.LocationsWatcher.Added.Any() ? string.Join(", ", added.Select(p => p.Name)) : "none";
|
string addedText = 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 removedText = removed.Any() ? string.Join(", ", removed.Select(p => p.Name)) : "none";
|
||||||
this.Monitor.Log($"Context: location list changed (added {addedText}; removed {removedText}).", LogLevel.Trace);
|
this.Monitor.Log($"Context: location list changed (added {addedText}; removed {removedText}).", LogLevel.Trace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue