summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-19 19:14:53 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-19 19:14:53 -0400
commit5c819662f88cd7004a85ac0d0e30a79b5dc4be37 (patch)
treebb1e988ffd903860f20c22818b1d142e8e40f9e5 /src/SMAPI/Framework/Content
parente6c696fa6b0bfe5ef013e1179765ce1dcb071c38 (diff)
downloadSMAPI-5c819662f88cd7004a85ac0d0e30a79b5dc4be37.tar.gz
SMAPI-5c819662f88cd7004a85ac0d0e30a79b5dc4be37.tar.bz2
SMAPI-5c819662f88cd7004a85ac0d0e30a79b5dc4be37.zip
suppress some duplicate deprecation notices
Diffstat (limited to 'src/SMAPI/Framework/Content')
-rw-r--r--src/SMAPI/Framework/Content/AssetInfo.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Content/AssetInfo.cs b/src/SMAPI/Framework/Content/AssetInfo.cs
index c632249d..363fffb3 100644
--- a/src/SMAPI/Framework/Content/AssetInfo.cs
+++ b/src/SMAPI/Framework/Content/AssetInfo.cs
@@ -36,7 +36,12 @@ namespace StardewModdingAPI.Framework.Content
source: SCore.DeprecationManager.GetModFromStack(),
nounPhrase: $"{nameof(IAssetInfo)}.{nameof(IAssetInfo.AssetName)}",
version: "3.14.0",
- severity: DeprecationLevel.Notice
+ severity: DeprecationLevel.Notice,
+ unlessStackIncludes: new[]
+ {
+ $"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",
+ $"{typeof(ContentCoordinator).FullName}.{nameof(ContentCoordinator.GetAssetOperations)}"
+ }
);
return this.NameWithoutLocale.Name;
@@ -72,7 +77,12 @@ namespace StardewModdingAPI.Framework.Content
source: SCore.DeprecationManager.GetModFromStack(),
nounPhrase: $"{nameof(IAssetInfo)}.{nameof(IAssetInfo.AssetNameEquals)}",
version: "3.14.0",
- severity: DeprecationLevel.Notice
+ severity: DeprecationLevel.Notice,
+ unlessStackIncludes: new[]
+ {
+ $"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",
+ $"{typeof(ContentCoordinator).FullName}.{nameof(ContentCoordinator.GetAssetOperations)}"
+ }
);