summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Config.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-06 10:30:25 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-06 10:30:25 -0500
commitf9aa76e41f84ff9ec70dc9bf5178f50617e45424 (patch)
tree11b94db45b62a2fa6dcd6fbc4fdcb1b8fa6caba6 /src/StardewModdingAPI/Config.cs
parent07d0dc38ca210a82264841fd7fe8d2040acee61d (diff)
downloadSMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.tar.gz
SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.tar.bz2
SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.zip
use more nuanced deprecation warnings (#165)
Diffstat (limited to 'src/StardewModdingAPI/Config.cs')
-rw-r--r--src/StardewModdingAPI/Config.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Config.cs b/src/StardewModdingAPI/Config.cs
index 91503a83..326685c1 100644
--- a/src/StardewModdingAPI/Config.cs
+++ b/src/StardewModdingAPI/Config.cs
@@ -3,6 +3,7 @@ using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
+using StardewModdingAPI.Framework;
namespace StardewModdingAPI
{
@@ -107,7 +108,7 @@ namespace StardewModdingAPI
/// <summary>Construct an instance.</summary>
protected Config()
{
- Program.DeprecationManager.Warn("the Config class", "1.0");
+ Program.DeprecationManager.Warn("the Config class", "1.0", DeprecationLevel.Notice);
Program.DeprecationManager.MarkWarned($"{nameof(Mod)}.{nameof(Mod.BaseConfigPath)}", "1.0"); // typically used to construct config, avoid redundant warnings
}
}