From 6a48094995c0e9c47233ae5566c00a1aea3d164e Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 19 Nov 2016 00:09:39 -0500 Subject: fix deprecation warnings beign repeated if the mod can't be identified --- src/StardewModdingAPI/Framework/DeprecationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ?? "", nounPhrase, version)) return; // build message -- cgit