summaryrefslogtreecommitdiff
path: root/src/SMAPI/Utilities/SDate.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-07-06 19:25:15 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-07-06 19:25:15 -0400
commit9c9552531f8f085cded6ed5158503e75b00be1ff (patch)
treeda1e4474f6d5e4a5738b19a6cc45a9a16b13addd /src/SMAPI/Utilities/SDate.cs
parent4d9fd63d9e890a10029508c7d7e31dcc0b579db7 (diff)
downloadSMAPI-9c9552531f8f085cded6ed5158503e75b00be1ff.tar.gz
SMAPI-9c9552531f8f085cded6ed5158503e75b00be1ff.tar.bz2
SMAPI-9c9552531f8f085cded6ed5158503e75b00be1ff.zip
fix build warnings
Diffstat (limited to 'src/SMAPI/Utilities/SDate.cs')
-rw-r--r--src/SMAPI/Utilities/SDate.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Utilities/SDate.cs b/src/SMAPI/Utilities/SDate.cs
index c7ad41bd..06ee8b91 100644
--- a/src/SMAPI/Utilities/SDate.cs
+++ b/src/SMAPI/Utilities/SDate.cs
@@ -278,11 +278,11 @@ namespace StardewModdingAPI.Utilities
/// <summary>Get whether a date represents 0 spring Y1, which is the date during the in-game intro.</summary>
/// <param name="day">The day of month.</param>
- /// <param name="season">The season name.</param>
+ /// <param name="season">The normalized season name.</param>
/// <param name="year">The year.</param>
private bool IsDayZero(int day, string season, int year)
{
- return day == 0 && season?.Trim().ToLower() == "spring" && year == 1;
+ return day == 0 && season == "spring" && year == 1;
}
/// <summary>Get the day of week for a given date.</summary>