diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-12 16:04:18 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-12 16:04:18 -0400 |
commit | ccd09eb9143bee60bfdc4182c3a7505fabddbe48 (patch) | |
tree | 6a85b864ae478c8b09f23be2ded014cf6c2bb83c | |
parent | b474c47a08813eef41db7f558f2efa33f6165d81 (diff) | |
download | SMAPI-ccd09eb9143bee60bfdc4182c3a7505fabddbe48.tar.gz SMAPI-ccd09eb9143bee60bfdc4182c3a7505fabddbe48.tar.bz2 SMAPI-ccd09eb9143bee60bfdc4182c3a7505fabddbe48.zip |
fix world_setseason command not running season change logic
-rw-r--r-- | docs/release-notes.md | 1 | ||||
-rw-r--r-- | src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/SetSeasonCommand.cs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index cf531c57..ff9fcdac 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,6 +10,7 @@ * Fixed detection of GOG Galaxy install path in rare cases. * Fixed install error on Linux/Mac in some cases. * Fixed `smapi.io/install` not linking to a useful page. + * Fixed `world_setseason` command not running season-change logic. * Renamed `install.exe` to `install on Windows.exe` to avoid confusion. * For modders: diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/SetSeasonCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/SetSeasonCommand.cs index 897d052f..3d6d4b3d 100644 --- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/SetSeasonCommand.cs +++ b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/SetSeasonCommand.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using StardewValley; namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.World @@ -39,6 +39,7 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.World // handle Game1.currentSeason = season; + Game1.setGraphicsForSeason(); monitor.Log($"OK, the date is now {Game1.currentSeason} {Game1.dayOfMonth}.", LogLevel.Info); } } |