]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix construction rotation (#28427)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Thu, 13 Jun 2024 18:21:48 +0000 (14:21 -0400)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 18:21:48 +0000 (10:21 -0800)
Content.Server/Construction/ConstructionSystem.Initial.cs

index 08dd139ef4cecf293456a9f6c846644cbd798a57..6cc430b74f6783cbaa729377f1ca54e0867dca15 100644 (file)
@@ -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))
             {