fix: Fixes world load not deleting bad objects (#1212)

This commit is contained in:
Kamron Batman 2022-10-28 16:58:52 -07:00 • committed by GitHub
parent 5151ff66b5
commit ebbffc3755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,6 +277,9 @@ public static class World
Persistence.Load(SavePath);
EventSink.InvokeWorldLoad();
// Set the world to running before we process our queues
WorldState = WorldState.Running;
ProcessSafetyQueues();
foreach (var item in Items.Values)
@ -304,8 +307,6 @@ public static class World
Mobiles.Count,
watch.Elapsed.TotalSeconds
);
WorldState = WorldState.Running;
}
private static void ProcessSafetyQueues()