Replace GridEntityId with Owner (#12743)
This commit is contained in:
@@ -263,7 +263,7 @@ namespace Content.Server.Salvage
|
||||
var tsc = Transform(component.Owner);
|
||||
coords = new EntityCoordinates(component.Owner, component.Offset).ToMap(EntityManager);
|
||||
|
||||
if (_mapManager.TryGetGrid(tsc.GridUid, out var magnetGrid) && TryComp<TransformComponent>(magnetGrid.GridEntityId, out var gridXform))
|
||||
if (_mapManager.TryGetGrid(tsc.GridUid, out var magnetGrid) && TryComp<TransformComponent>(magnetGrid.Owner, out var gridXform))
|
||||
{
|
||||
angle = gridXform.WorldRotation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user