Revert "Remove most usages of obsolete TransformComponent methods (#1… (#19714)
This commit is contained in:
@@ -9,7 +9,6 @@ namespace Content.Shared.Placeable
|
||||
public sealed class PlaceableSurfaceSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly SharedHandsSystem _handsSystem = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -69,9 +68,9 @@ namespace Content.Shared.Placeable
|
||||
return;
|
||||
|
||||
if (surface.PlaceCentered)
|
||||
_transform.SetLocalPosition(args.Used, Transform(uid).LocalPosition + surface.PositionOffset);
|
||||
Transform(args.Used).LocalPosition = Transform(uid).LocalPosition + surface.PositionOffset;
|
||||
else
|
||||
_transform.SetCoordinates(args.Used, args.ClickLocation);
|
||||
Transform(args.Used).Coordinates = args.ClickLocation;
|
||||
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user