summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModHelpers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-05-30 17:40:21 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:01:38 -0400
commitb9dec734693f50b3b32977cd505f091a2c8b8382 (patch)
tree3dc4c8a617538ad322cdc11124db094bfd620146 /src/SMAPI/Framework/ModHelpers
parent202ba23dcc24e63541eb78a535182ec89650a8fa (diff)
downloadSMAPI-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.cs4
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}'.");