diff options
author | spacechase0 <spacechase0.and.cat@gmail.com> | 2017-08-09 16:40:10 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2017-08-09 17:41:36 -0400 |
commit | dafebd1626b6c3b34a818f5f161289a6e32fe4af (patch) | |
tree | 44f9269870cae99ce5440db69425b0e248639bcc | |
parent | baeaf826a9bb185c78732b5f2b91c3f499246f1a (diff) | |
download | SMAPI-dafebd1626b6c3b34a818f5f161289a6e32fe4af.tar.gz SMAPI-dafebd1626b6c3b34a818f5f161289a6e32fe4af.tar.bz2 SMAPI-dafebd1626b6c3b34a818f5f161289a6e32fe4af.zip |
Fix building SMAPI 1.x
-rw-r--r-- | src/StardewModdingAPI/Framework/SGame.cs | 3 | ||||
-rw-r--r-- | src/StardewModdingAPI/Utilities/SDate.cs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs index 65191931..755f0274 100644 --- a/src/StardewModdingAPI/Framework/SGame.cs +++ b/src/StardewModdingAPI/Framework/SGame.cs @@ -19,6 +19,9 @@ using StardewValley.Menus; using StardewValley.Tools; using xTile.Dimensions; using xTile.Layers; +#if SMAPI_1_x +using SFarmer = StardewValley.Farmer; +#endif namespace StardewModdingAPI.Framework { diff --git a/src/StardewModdingAPI/Utilities/SDate.cs b/src/StardewModdingAPI/Utilities/SDate.cs index bc3a2b38..d7631598 100644 --- a/src/StardewModdingAPI/Utilities/SDate.cs +++ b/src/StardewModdingAPI/Utilities/SDate.cs @@ -69,7 +69,9 @@ namespace StardewModdingAPI.Utilities this.Day = day; this.Season = season; this.Year = year; +#if !SMAPI_1_x this.DayOfWeek = this.GetDayOfWeek(); +#endif } /// <summary>Get the current in-game date.</summary> |