From c37a9f37eb928e5904e2d9a538eadd6a5a91fd7f Mon Sep 17 00:00:00 2001 From: DrakiaXYZ <565558+DrakiaXYZ@users.noreply.github.com> Date: Mon, 26 Jan 2026 10:06:11 -0800 Subject: [PATCH] Fix colors not working on mod load failure (#734) Move console mode set to beginning of StartServer to allow colors earlier in the console output Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> --- SPTarkov.Server/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SPTarkov.Server/Program.cs b/SPTarkov.Server/Program.cs index cb34f4e1..a4265c83 100644 --- a/SPTarkov.Server/Program.cs +++ b/SPTarkov.Server/Program.cs @@ -93,6 +93,7 @@ public static class Program public static async Task StartServer(string[] args) { Console.OutputEncoding = Encoding.UTF8; + SetConsoleOutputMode(); // Some users don't know how to create a shortcut... if (!IsRunFromInstallationFolder()) @@ -157,8 +158,6 @@ public static class Program forwardedHeadersOptions.KnownProxies.Clear(); app.UseForwardedHeaders(forwardedHeadersOptions); - SetConsoleOutputMode(); - await app.Services.GetRequiredService().Startup(); await app.RunAsync();