Polymorphs spawn using the parents world rotation (#27223)

changes polymorph spawn to use angle
This commit is contained in:
keronshb
2024-04-22 04:39:07 -04:00
committed by GitHub
parent 81f2dc7cf9
commit 210e6f6444

View File

@@ -199,7 +199,7 @@ public sealed partial class PolymorphSystem : EntitySystem
var targetTransformComp = Transform(uid); var targetTransformComp = Transform(uid);
var child = Spawn(configuration.Entity, targetTransformComp.Coordinates); var child = Spawn(configuration.Entity, _transform.GetMapCoordinates(uid, targetTransformComp), rotation: _transform.GetWorldRotation(uid));
MakeSentientCommand.MakeSentient(child, EntityManager); MakeSentientCommand.MakeSentient(child, EntityManager);