diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-06 22:21:10 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-06 22:21:10 -0400 |
commit | a1a93ac4bf20458d49028ed40905e715aa1ae152 (patch) | |
tree | d76e739f930761b032584be8bf5be488882463dc /src/SMAPI/Framework | |
parent | 7eca78426e46c90320be6d904cd97fa6319da1a7 (diff) | |
download | SMAPI-a1a93ac4bf20458d49028ed40905e715aa1ae152.tar.gz SMAPI-a1a93ac4bf20458d49028ed40905e715aa1ae152.tar.bz2 SMAPI-a1a93ac4bf20458d49028ed40905e715aa1ae152.zip |
fix spring tilesheets always used for custom festival maps (#577)
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/ContentHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs index 671dc21e..a8b24a13 100644 --- a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs @@ -259,7 +259,7 @@ namespace StardewModdingAPI.Framework.ModHelpers // get seasonal name (if applicable) string seasonalImageSource = null; - if (Game1.currentSeason != null) + if (Context.IsSaveLoaded && Game1.currentSeason != null) { string filename = Path.GetFileName(imageSource) ?? throw new InvalidOperationException($"The '{imageSource}' tilesheet couldn't be loaded: filename is unexpectedly null."); bool hasSeasonalPrefix = |