Skip to content

Commit

Permalink
Fix rotation not being passed in properly in entitymanager methods
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 authored May 27, 2024
1 parent 1f7a9bd commit 650ee40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Robust.Shared/GameObjects/EntityManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public virtual EntityUid CreateEntityUninitialized(string? prototypeName, MapCoo
if (transform.Anchored && _mapManager.TryFindGridAt(coordinates, out var gridUid, out var grid))
{
coords = new EntityCoordinates(gridUid, _mapSystem.WorldToLocal(gridUid, grid, coordinates.Position));
_xforms.SetCoordinates(newEntity, transform, coords, unanchor: false);
_xforms.SetCoordinates(newEntity, transform, coords, rotation, unanchor: false);
}
else
{
Expand Down

0 comments on commit 650ee40

Please sign in to comment.