summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-03-25 18:59:36 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-04-22 22:02:14 -0400
commit5d0cba90a15ee27e14ea0e2cff73db7542cd5762 (patch)
tree9c13df84d8f411578e9bbd13888604a189c22600 /src
parent2800f7a931b56b551df35280134b9d9e4d7e96a6 (diff)
downloadSMAPI-5d0cba90a15ee27e14ea0e2cff73db7542cd5762.tar.gz
SMAPI-5d0cba90a15ee27e14ea0e2cff73db7542cd5762.tar.bz2
SMAPI-5d0cba90a15ee27e14ea0e2cff73db7542cd5762.zip
fix error on Mac when a custom map references a vanilla tilesheet that only exists under Content/Maps
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Framework/ModHelpers/ContentHelper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs
index 7c353003..8b86fdeb 100644
--- a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs
@@ -316,7 +316,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
// check relative to content folder
{
- foreach (string candidateKey in new[] { imageSource, $@"Maps\{imageSource}" })
+ foreach (string candidateKey in new[] { imageSource, Path.Combine("Maps", imageSource) })
{
string contentKey = candidateKey.EndsWith(".png")
? candidateKey.Substring(0, candidateKey.Length - 4)