fix: Stops trying to perform snapshots when the world is not saving (#1658)

This commit is contained in:
Kamron Batman 2024-01-15 08:29:54 -08:00 committed by GitHub
parent 0ffea2e912
commit 823023275b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)