fix game launch error logged as 'SMAPI'

This commit is contained in:
Jesse Plamondon-Willard 2018-12-14 00:23:48 -05:00
parent 95b1dedb66
commit 8eee91c67d
No known key found for this signature in database
GPG Key ID: 7D7C8097B62033CE
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
* Fixed error when a mod makes invalid changes to an NPC schedule.
* Fixed invalid NPC data propagated when a mod changes NPC dispositions.
* Fixed `Display.RenderedWorld` event broken in SMAPI 2.9.1.
* Fixed game launch crash logged as `SMAPI` instead of `game`.
* For modders:
* Added dedicated content pack API.

View File

@ -315,7 +315,7 @@ namespace StardewModdingAPI.Framework
}
catch (Exception ex)
{
this.Monitor.Log($"The game failed unexpectedly: {ex.GetLogSummary()}", LogLevel.Error);
this.MonitorForGame.Log($"The game failed to launch: {ex.GetLogSummary()}", LogLevel.Error);
this.PressAnyKeyToExit();
}
finally