]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Purge the one remaining use of TransformComponent.AttachParent (#34941)
authorTemporalOroboros <TemporalOroboros@gmail.com>
Mon, 10 Feb 2025 11:46:27 +0000 (03:46 -0800)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2025 11:46:27 +0000 (22:46 +1100)
Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs

index bda7d20a8e04a6ecfbc34c585c62ac7120a6e279..5c6d50ffd37bcba5e02e15e1c4370a35a582fb90 100644 (file)
@@ -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();