Remove some obsolete AppearanceComponent method usages (#13726)

This commit is contained in:
Visne
2023-02-02 17:34:53 +01:00
committed by GitHub
parent 23b90de34d
commit 5a5a3afbb1
111 changed files with 428 additions and 349 deletions

View File

@@ -6,6 +6,7 @@ using Content.Shared.Hands.EntitySystems;
using Content.Shared.Interaction;
using Content.Shared.Sticky.Components;
using Content.Shared.Verbs;
using Robust.Server.GameObjects;
using Robust.Shared.Containers;
using Robust.Shared.Player;
@@ -18,6 +19,7 @@ public sealed class StickySystem : EntitySystem
[Dependency] private readonly SharedContainerSystem _containerSystem = default!;
[Dependency] private readonly SharedHandsSystem _handsSystem = default!;
[Dependency] private readonly SharedInteractionSystem _interactionSystem = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
private const string StickerSlotId = "stickers_container";
@@ -172,7 +174,7 @@ public sealed class StickySystem : EntitySystem
// send information to appearance that entity is stuck
if (TryComp(uid, out AppearanceComponent? appearance))
{
appearance.SetData(StickyVisuals.IsStuck, true);
_appearance.SetData(uid, StickyVisuals.IsStuck, true, appearance);
}
component.StuckTo = target;
@@ -200,7 +202,7 @@ public sealed class StickySystem : EntitySystem
// send information to appearance that entity isn't stuck
if (TryComp(uid, out AppearanceComponent? appearance))
{
appearance.SetData(StickyVisuals.IsStuck, false);
_appearance.SetData(uid, StickyVisuals.IsStuck, false, appearance);
}
// show message to user