From 60b3ff59cf31a3bffc2c62bbfb9413a2b5a88cba Mon Sep 17 00:00:00 2001 From: 20kdc Date: Wed, 27 Oct 2021 02:23:44 +0100 Subject: [PATCH] Fix morgue rotation by using more EntityCoordinates (#5041) --- .../Morgue/Components/MorgueEntityStorageComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs b/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs index 6c0b027000..77b6ce95f1 100644 --- a/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs +++ b/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs @@ -16,6 +16,7 @@ using Robust.Shared.Containers; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Localization; +using Robust.Shared.Map; using Robust.Shared.Maths; using Robust.Shared.Player; using Robust.Shared.Serialization.Manager.Attributes; @@ -106,8 +107,7 @@ namespace Content.Server.Morgue.Components TrayContainer?.Remove(_tray); } - _tray.Transform.WorldPosition = Owner.Transform.WorldPosition + Owner.Transform.LocalRotation.GetCardinalDir().ToVec(); - _tray.Transform.AttachParent(Owner); + _tray.Transform.Coordinates = new EntityCoordinates(Owner.Uid, 0, -1); base.OpenStorage(); }