summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/AssetDataForMap.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-09-08 18:17:09 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-09-08 18:17:09 -0400
commit5433f9023ed174366c8bf450785aafbdb077d29d (patch)
tree3a4fc71371d5a1194c2f819444aa7fc32f739830 /src/SMAPI/Framework/Content/AssetDataForMap.cs
parent8a51279ce943ff74b45ec7af308ecf59d73ace9b (diff)
parentd53e033163cfc4a876d6a3341979315a3d937a4f (diff)
downloadSMAPI-5433f9023ed174366c8bf450785aafbdb077d29d.tar.gz
SMAPI-5433f9023ed174366c8bf450785aafbdb077d29d.tar.bz2
SMAPI-5433f9023ed174366c8bf450785aafbdb077d29d.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetDataForMap.cs')
-rw-r--r--src/SMAPI/Framework/Content/AssetDataForMap.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForMap.cs b/src/SMAPI/Framework/Content/AssetDataForMap.cs
index e80c6e53..20f0ed0f 100644
--- a/src/SMAPI/Framework/Content/AssetDataForMap.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForMap.cs
@@ -153,7 +153,7 @@ namespace StardewModdingAPI.Framework.Content
if (string.IsNullOrWhiteSpace(path))
return string.Empty;
- path = PathUtilities.NormalizePathSeparators(path.Trim());
+ path = PathUtilities.NormalizePath(path);
if (path.StartsWith($"Maps{PathUtilities.PreferredPathSeparator}", StringComparison.OrdinalIgnoreCase))
path = path.Substring($"Maps{PathUtilities.PreferredPathSeparator}".Length);
if (path.EndsWith(".png", StringComparison.OrdinalIgnoreCase))