From e4fe9c463830d78bc555c2da16b1866d8ecc9450 Mon Sep 17 00:00:00 2001 From: TemporalOroboros Date: Mon, 10 Feb 2025 03:46:27 -0800 Subject: [PATCH] Purge the one remaining use of TransformComponent.AttachParent (#34941) --- .../EntitySystems/ContainmentFieldGeneratorSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs index bda7d20a8e..5c6d50ffd3 100644 --- a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs +++ b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs @@ -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(); -- 2.51.2