summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers/ModContentManager.cs')
-rw-r--r--src/SMAPI/Framework/ContentManagers/ModContentManager.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
index de05e92d..d6eb28c8 100644
--- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
@@ -118,7 +118,13 @@ namespace StardewModdingAPI.Framework.ContentManagers
// XNB file
case ".xnb":
{
- return this.RawLoad<T>(assetName, useCache: false);
+ T data = this.RawLoad<T>(assetName, useCache: false);
+ if (data is Map map)
+ {
+ this.FixCustomTilesheetPaths(map, relativeMapPath: assetName);
+ this.NormaliseTilesheetPaths(map);
+ }
+ return data;
}
// unpacked data