Makes more things queue delete to prevent physics collision callback issues.
This commit is contained in:
@@ -184,7 +184,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
{
|
||||
if (_ghosts.TryGetValue(ghostId, out var ghost))
|
||||
{
|
||||
ghost.Owner.Delete();
|
||||
ghost.Owner.QueueDelete();
|
||||
_ghosts.Remove(ghostId);
|
||||
}
|
||||
}
|
||||
@@ -196,7 +196,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
{
|
||||
foreach (var (_, ghost) in _ghosts)
|
||||
{
|
||||
ghost.Owner.Delete();
|
||||
ghost.Owner.QueueDelete();
|
||||
}
|
||||
|
||||
_ghosts.Clear();
|
||||
|
||||
Reference in New Issue
Block a user