diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-01-04 22:08:01 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-01-04 22:08:01 -0500 |
commit | 93459a5e37b26cc8d742878dd993543c43f70694 (patch) | |
tree | b1509194189f667d2de994c491f3872ff238c7ce /src/SMAPI/Framework/Content/AssetInterceptorChange.cs | |
parent | aef2550d23e5cf61adb699d90f39f5799db29bdf (diff) | |
download | SMAPI-93459a5e37b26cc8d742878dd993543c43f70694.tar.gz SMAPI-93459a5e37b26cc8d742878dd993543c43f70694.tar.bz2 SMAPI-93459a5e37b26cc8d742878dd993543c43f70694.zip |
fix new asset invalidation code not correctly handling interceptors which both load and edit
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetInterceptorChange.cs')
-rw-r--r-- | src/SMAPI/Framework/Content/AssetInterceptorChange.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Content/AssetInterceptorChange.cs b/src/SMAPI/Framework/Content/AssetInterceptorChange.cs index 498afe36..037d9f89 100644 --- a/src/SMAPI/Framework/Content/AssetInterceptorChange.cs +++ b/src/SMAPI/Framework/Content/AssetInterceptorChange.cs @@ -64,7 +64,8 @@ namespace StardewModdingAPI.Framework.Content { try { - return editor.CanEdit<TAsset>(asset); + if (editor.CanEdit<TAsset>(asset)) + return true; } catch (Exception ex) { @@ -77,7 +78,8 @@ namespace StardewModdingAPI.Framework.Content { try { - return loader.CanLoad<TAsset>(asset); + if (loader.CanLoad<TAsset>(asset)) + return true; } catch (Exception ex) { |