Revert "Remove most usages of obsolete TransformComponent methods (#1… (#19714)

This commit is contained in:
metalgearsloth
2023-09-01 12:30:29 +10:00
committed by GitHub
parent 37222930d9
commit 4cfc578011
91 changed files with 227 additions and 315 deletions

View File

@@ -140,7 +140,7 @@ public partial class SharedBodySystem
container.Remove(organId.Value);
if (TryComp(organId, out TransformComponent? transform))
_transform.AttachToGridOrMap(organId.Value, transform);
transform.AttachToGridOrMap();
organ.Owner.RandomOffset(0.25f);
@@ -165,7 +165,7 @@ public partial class SharedBodySystem
return false;
if (TryComp(organId.Value, out TransformComponent? transform))
_transform.SetCoordinates(organId.Value, transform, dropAt);
transform.Coordinates = dropAt;
return true;
}