fix: Stops trying to perform snapshots when the world is not saving (#1658)
This commit is contained in:
parent
0ffea2e912
commit
823023275b
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue