Fix construction rotation (#28427)
This commit is contained in:
@@ -271,7 +271,7 @@ namespace Content.Server.Construction
|
|||||||
}
|
}
|
||||||
|
|
||||||
var newEntityProto = graph.Nodes[edge.Target].Entity.GetId(null, user, new(EntityManager));
|
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))
|
if (!TryComp(newEntity, out ConstructionComponent? construction))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user