diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-05-30 17:40:21 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 18:01:38 -0400 |
commit | b9dec734693f50b3b32977cd505f091a2c8b8382 (patch) | |
tree | 3dc4c8a617538ad322cdc11124db094bfd620146 /src/SMAPI/Framework/ModHelpers | |
parent | 202ba23dcc24e63541eb78a535182ec89650a8fa (diff) | |
download | SMAPI-b9dec734693f50b3b32977cd505f091a2c8b8382.tar.gz SMAPI-b9dec734693f50b3b32977cd505f091a2c8b8382.tar.bz2 SMAPI-b9dec734693f50b3b32977cd505f091a2c8b8382.zip |
disable mod-level asset caching (#644)
This fixes an issue where some asset references could be shared between content managers, causing changes to propagate unintentionally.
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/ContentHelper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs index 2d65f1f6..0be9aea5 100644 --- a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs @@ -91,10 +91,10 @@ namespace StardewModdingAPI.Framework.ModHelpers switch (source) { case ContentSource.GameContent: - return this.GameContentManager.Load<T>(key); + return this.GameContentManager.Load<T>(key, this.CurrentLocaleConstant, useCache: false); case ContentSource.ModFolder: - return this.ModContentManager.Load<T>(key); + return this.ModContentManager.Load<T>(key, this.CurrentLocaleConstant, useCache: false); default: throw new SContentLoadException($"{this.ModName} failed loading content asset '{key}' from {source}: unknown content source '{source}'."); |