From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:21:48 +0000 (-0400) Subject: Fix construction rotation (#28427) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=221cb73d8c24fdfff79ba1ab1d5d1de7e2dc579f;p=space-station-14.git Fix construction rotation (#28427) --- diff --git a/Content.Server/Construction/ConstructionSystem.Initial.cs b/Content.Server/Construction/ConstructionSystem.Initial.cs index 08dd139ef4..6cc430b74f 100644 --- a/Content.Server/Construction/ConstructionSystem.Initial.cs +++ b/Content.Server/Construction/ConstructionSystem.Initial.cs @@ -271,7 +271,7 @@ namespace Content.Server.Construction } var newEntityProto = graph.Nodes[edge.Target].Entity.GetId(null, user, new(EntityManager)); - var newEntity = Spawn(newEntityProto, _transformSystem.ToMapCoordinates(coords), rotation: angle); + var newEntity = EntityManager.SpawnAttachedTo(newEntityProto, coords, rotation: angle); if (!TryComp(newEntity, out ConstructionComponent? construction)) {