diff options
-rw-r--r-- | release-notes.md | 2 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/DeprecationManager.cs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/release-notes.md b/release-notes.md index b1b8925e..3450c16d 100644 --- a/release-notes.md +++ b/release-notes.md @@ -4,6 +4,8 @@ See [log](https://github.com/CLxS/SMAPI/compare/1.1...master). This is a patch release that addresses compatibility with older mods. + +* Fixed deprecation warnings being repeated if the mod can't be identified. ## 1.1 See [log](https://github.com/CLxS/SMAPI/compare/1.0...1.1). diff --git a/src/StardewModdingAPI/Framework/DeprecationManager.cs b/src/StardewModdingAPI/Framework/DeprecationManager.cs index 044c2a40..8c32ba6a 100644 --- a/src/StardewModdingAPI/Framework/DeprecationManager.cs +++ b/src/StardewModdingAPI/Framework/DeprecationManager.cs @@ -49,7 +49,7 @@ namespace StardewModdingAPI.Framework public void Warn(string source, string nounPhrase, string version, DeprecationLevel severity) { // ignore if already warned - if (source != null && !this.MarkWarned(source, nounPhrase, version)) + if (!this.MarkWarned(source ?? "<unknown>", nounPhrase, version)) return; // build message |