summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentCoordinator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-20 22:18:09 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-20 22:18:09 -0500
commit0d7d4476004d33b395d6df81386e4159d8898027 (patch)
tree79cd72f30400b228c552530b3ccc0603ccf4c7bc /src/SMAPI/Framework/ContentCoordinator.cs
parent95f658014ebd2aadce1bc72d1d7e763efd7782ba (diff)
downloadSMAPI-0d7d4476004d33b395d6df81386e4159d8898027.tar.gz
SMAPI-0d7d4476004d33b395d6df81386e4159d8898027.tar.bz2
SMAPI-0d7d4476004d33b395d6df81386e4159d8898027.zip
auto-fix maps broken due to missing vanilla tilesheet
Diffstat (limited to 'src/SMAPI/Framework/ContentCoordinator.cs')
-rw-r--r--src/SMAPI/Framework/ContentCoordinator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/ContentCoordinator.cs b/src/SMAPI/Framework/ContentCoordinator.cs
index b6f1669a..99091f3e 100644
--- a/src/SMAPI/Framework/ContentCoordinator.cs
+++ b/src/SMAPI/Framework/ContentCoordinator.cs
@@ -406,14 +406,14 @@ namespace StardewModdingAPI.Framework
if (!this.VanillaTilesheets.TryGetValue(assetName, out TilesheetReference[] tilesheets))
{
tilesheets = this.TryLoadVanillaAsset(assetName, out Map map)
- ? map.TileSheets.Select((sheet, index) => new TilesheetReference(index, sheet.Id, sheet.ImageSource)).ToArray()
+ ? map.TileSheets.Select((sheet, index) => new TilesheetReference(index, sheet.Id, sheet.ImageSource, sheet.SheetSize, sheet.TileSize)).ToArray()
: null;
this.VanillaTilesheets[assetName] = tilesheets;
this.VanillaContentManager.Unload();
}
- return tilesheets ?? new TilesheetReference[0];
+ return tilesheets ?? Array.Empty<TilesheetReference>();
}
/// <summary>Get the language enum which corresponds to a locale code (e.g. <see cref="LocalizedContentManager.LanguageCode.fr"/> given <c>fr-FR</c>).</summary>