Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Update PolymorphSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekins3366 authored Apr 28, 2024
1 parent 8be2297 commit 7fbf4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Polymorph/Systems/PolymorphSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private void OnDestruction(Entity<PolymorphedEntityComponent> ent, ref Destructi

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);

Expand Down

0 comments on commit 7fbf4be

Please sign in to comment.