From a05b864952cbbff587aba9bf3c7705a575d9925f Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 23 Jun 2022 14:29:12 +1000 Subject: [PATCH] Make transform handlestate set coordinates and not attachparent (#2965) This makes the EntParentChangedMessage have the new position when it's issued. --- .../GameObjects/Systems/SharedTransformSystem.Component.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs b/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs index 001b4ac9e4..abe9986501 100644 --- a/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs +++ b/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs @@ -383,7 +383,7 @@ public abstract partial class SharedTransformSystem #endif } - component.AttachParent(Transform(newParentId)); + component.Coordinates = new EntityCoordinates(newParentId, newState.LocalPosition); } rebuildMatrices = true;