Revert "Purge uses of TransformComponent.Anchored.set. Also adds parentheses." (#35332)

This commit is contained in:
metalgearsloth
2025-02-21 00:12:12 +11:00
committed by GitHub
parent a4001fba1b
commit fa35c9623d
22 changed files with 34 additions and 35 deletions

View File

@@ -21,7 +21,6 @@ namespace Content.Server.Rotatable
[Dependency] private readonly PopupSystem _popup = default!;
[Dependency] private readonly ActionBlockerSystem _actionBlocker = default!;
[Dependency] private readonly SharedInteractionSystem _interaction = default!;
[Dependency] private readonly SharedTransformSystem _transform = default!;
public override void Initialize()
{
@@ -113,7 +112,7 @@ namespace Content.Server.Rotatable
var entity = EntityManager.SpawnEntity(component.MirrorEntity, oldTransform.Coordinates);
var newTransform = EntityManager.GetComponent<TransformComponent>(entity);
newTransform.LocalRotation = oldTransform.LocalRotation;
_transform.Unanchor((entity, newTransform));
newTransform.Anchored = false;
EntityManager.DeleteEntity(uid);
}