mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Minor re-apply net state change (#4392)
Slightly faster than checking deleted first, at least for now.
This commit is contained in:
@@ -780,10 +780,10 @@ namespace Robust.Client.GameStates
|
||||
continue;
|
||||
|
||||
// Original entity referencing the NetEntity may have been deleted.
|
||||
if (_entityManager.Deleted(uid))
|
||||
if (!metas.TryGetComponent(uid, out var meta))
|
||||
continue;
|
||||
|
||||
_toApply[uid] = (_entityManager.GetNetEntity(uid), false, GameTick.Zero, null, null);
|
||||
_toApply[uid] = (_entityManager.GetNetEntity(uid, meta), false, GameTick.Zero, null, null);
|
||||
}
|
||||
|
||||
var queuedBroadphaseUpdates = new List<(EntityUid, TransformComponent)>(enteringPvs);
|
||||
|
||||
Reference in New Issue
Block a user