From: TemporalOroboros Date: Mon, 10 Feb 2025 11:46:27 +0000 (-0800) Subject: Purge the one remaining use of TransformComponent.AttachParent (#34941) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e4fe9c463830d78bc555c2da16b1866d8ecc9450;p=space-station-14.git Purge the one remaining use of TransformComponent.AttachParent (#34941) --- 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();