Fix nent deleted entity handling (#4379)

This commit is contained in:
metalgearsloth
2023-09-13 11:22:21 +10:00
committed by GitHub
parent 5cd8e8276e
commit e6c335b6cd

View File

@@ -775,9 +775,14 @@ namespace Robust.Client.GameStates
// Check pending states and see if we need to force any entities to re-run component states.
foreach (var uid in _pendingReapplyNetStates.Keys)
{
// State already being re-applied so don't bulldoze it.
if (_toApply.ContainsKey(uid))
continue;
// Original entity referencing the NetEntity may have been deleted.
if (_entityManager.Deleted(uid))
continue;
_toApply[uid] = (_entityManager.GetNetEntity(uid), false, GameTick.Zero, null, null);
}