Fix some comp dirty / appearance warnings (#13193)

* Fix some comp dirty / appearance warnings

* also dis
This commit is contained in:
metalgearsloth
2022-12-28 03:58:53 +11:00
committed by GitHub
parent d3d8dde42c
commit 007b079330
12 changed files with 43 additions and 45 deletions

View File

@@ -9,6 +9,8 @@ namespace Content.Shared.Follower;
public sealed class FollowerSystem : EntitySystem
{
[Dependency] private readonly SharedTransformSystem _transform = default!;
public override void Initialize()
{
base.Initialize();
@@ -71,7 +73,7 @@ public sealed class FollowerSystem : EntitySystem
followedComp.Following.Add(follower);
var xform = Transform(follower);
xform.AttachParent(entity);
_transform.SetParent(xform, entity);
xform.LocalPosition = Vector2.Zero;
xform.LocalRotation = Angle.Zero;