Fix construction rotation (#28427)

This commit is contained in:
Nemanja
2024-06-13 14:21:48 -04:00
committed by GitHub
parent 1bffa2aee7
commit 221cb73d8c

View 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))
{