From a35fe4744782f4895b110dc03cfa7cf850af0500 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 23 Apr 2017 19:21:48 -0400 Subject: fix monitor.ExitGameImmediately not working correctly --- src/StardewModdingAPI/Framework/Monitor.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/StardewModdingAPI') diff --git a/src/StardewModdingAPI/Framework/Monitor.cs b/src/StardewModdingAPI/Framework/Monitor.cs index 70dd94c0..76793bbf 100644 --- a/src/StardewModdingAPI/Framework/Monitor.cs +++ b/src/StardewModdingAPI/Framework/Monitor.cs @@ -71,6 +71,7 @@ namespace StardewModdingAPI.Framework this.Source = source; this.LogFile = logFile; this.ConsoleManager = consoleManager; + this.RequestExit = requestExitDelegate; } /// Log a message for the player or developer. @@ -129,6 +130,8 @@ namespace StardewModdingAPI.Framework { if (this.ConsoleManager.SupportsColor) { + if (background.HasValue) + Console.BackgroundColor = background.Value; Console.ForegroundColor = color; Console.WriteLine(message); Console.ResetColor(); -- cgit