Purge the one remaining use of TransformComponent.AttachParent (#34941)

This commit is contained in:
TemporalOroboros
2025-02-14 16:10:01 +00:00
committed by deltanedas
parent 253d607599
commit b5c1c80674
@@ -320,7 +320,7 @@ public sealed class ContainmentFieldGeneratorSystem : EntitySystem
var newField = Spawn(firstGen.Comp.CreatedField, currentCoords);
var fieldXForm = Transform(newField);
fieldXForm.AttachParent(firstGen);
_transformSystem.SetParent(newField, fieldXForm, firstGen);
if (dirVec.GetDir() == Direction.East || dirVec.GetDir() == Direction.West)
{
var angle = fieldXForm.LocalPosition.ToAngle();