From 823023275b87985dc8f1d6542bd6eb0a66b4cbba Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Mon, 15 Jan 2024 08:29:54 -0800 Subject: [PATCH] fix: Stops trying to perform snapshots when the world is not saving (#1658) --- Projects/Server/Main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projects/Server/Main.cs b/Projects/Server/Main.cs index cb89300aa..b41429594 100644 --- a/Projects/Server/Main.cs +++ b/Projects/Server/Main.cs @@ -420,7 +420,7 @@ public static class Core public static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; - + AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit; AppDomain.CurrentDomain.AssemblyResolve += AssemblyHandler.AssemblyResolver; @@ -577,6 +577,7 @@ public static class Core { // Return value is the offset that can be used to fix timers that should drift World.Snapshot(); + _performSnapshot = false; } if (_performProcessKill)