Remove some obsolete AppearanceComponent method usages (#13726)
This commit is contained in:
@@ -27,6 +27,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||
[Dependency] private readonly ToolSystem _toolSystem = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
|
||||
private const float ScrewTime = 2f;
|
||||
|
||||
@@ -114,7 +115,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
|
||||
if (appearance != null)
|
||||
{
|
||||
appearance.SetData(ApcVisuals.ChargeState, newState);
|
||||
_appearance.SetData(uid, ApcVisuals.ChargeState, newState, appearance);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -231,7 +232,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
if (!Resolve(uid, ref appearance, ref apc, false))
|
||||
return;
|
||||
|
||||
appearance.SetData(ApcVisuals.PanelState, GetPanelState(apc));
|
||||
_appearance.SetData(uid, ApcVisuals.PanelState, GetPanelState(apc), appearance);
|
||||
}
|
||||
|
||||
private sealed class ApcToolFinishedEvent : EntityEventArgs
|
||||
|
||||
Reference in New Issue
Block a user