Avoid unnecessary IRotatableNode reflooding. (#6592)
This commit is contained in:
parent
8400becab5
commit
690194be1f
1 changed files with 5 additions and 0 deletions
|
|
@ -75,8 +75,13 @@ namespace Content.Server.NodeContainer.EntitySystems
|
|||
return;
|
||||
}
|
||||
|
||||
var anchored = Transform(uid).Anchored;
|
||||
|
||||
foreach (var node in container.Nodes.Values)
|
||||
{
|
||||
if (node.NeedAnchored && !anchored)
|
||||
continue;
|
||||
|
||||
if (node is not IRotatableNode rotatableNode)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue