Remove some obsolete AppearanceComponent method usages (#13726)
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.Database;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Tools.Components;
|
||||
using Robust.Server.GameObjects;
|
||||
|
||||
namespace Content.Server.Tools.Systems;
|
||||
|
||||
@@ -11,6 +12,7 @@ public sealed class WeldableSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly ToolSystem _toolSystem = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -102,7 +104,7 @@ public sealed class WeldableSystem : EntitySystem
|
||||
|
||||
if (!TryComp(uid, out AppearanceComponent? appearance))
|
||||
return;
|
||||
appearance.SetData(WeldableVisuals.IsWelded, component.IsWelded);
|
||||
_appearance.SetData(uid, WeldableVisuals.IsWelded, component.IsWelded, appearance);
|
||||
}
|
||||
|
||||
public void ForceWeldedState(EntityUid uid, bool state, WeldableComponent? component = null)
|
||||
|
||||
Reference in New Issue
Block a user