From 23951220ae84f3132832c942b61a8e81aee1fbfe Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 8 Sep 2017 13:18:43 -0400 Subject: fix errors loading some custom map tilesheets on Linux/Mac --- src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/StardewModdingAPI/Framework/ModHelpers') diff --git a/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs b/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs index 9f236823..4440ae40 100644 --- a/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs +++ b/src/StardewModdingAPI/Framework/ModHelpers/ContentHelper.cs @@ -231,6 +231,7 @@ namespace StardewModdingAPI.Framework.ModHelpers // check map info if (!map.TileSheets.Any()) return; + mapKey = this.ContentManager.NormaliseAssetName(mapKey); // Mono's Path.GetDirectoryName doesn't handle Windows dir separators string relativeMapFolder = Path.GetDirectoryName(mapKey) ?? ""; // folder path containing the map, relative to the mod folder // fix tilesheets -- cgit