mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix nent deleted entity handling (#4379)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user