summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/DeprecationManager.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-19 00:09:39 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-19 00:09:39 -0500
commit6a48094995c0e9c47233ae5566c00a1aea3d164e (patch)
tree4699f4dc02a5fa3c0cf5ccbc8f235e610c2a148f /src/StardewModdingAPI/Framework/DeprecationManager.cs
parentd7be19e8f4f979c95a28b7b694b46e62eb57889d (diff)
downloadSMAPI-6a48094995c0e9c47233ae5566c00a1aea3d164e.tar.gz
SMAPI-6a48094995c0e9c47233ae5566c00a1aea3d164e.tar.bz2
SMAPI-6a48094995c0e9c47233ae5566c00a1aea3d164e.zip
fix deprecation warnings beign repeated if the mod can't be identified
Diffstat (limited to 'src/StardewModdingAPI/Framework/DeprecationManager.cs')
-rw-r--r--src/StardewModdingAPI/Framework/DeprecationManager.cs2
1 files changed, 1 insertions, 1 deletions
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