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

@@ -15,7 +15,7 @@ using Content.Server.Construction;
using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
using Robust.Server.Containers;
using Robust.Server.GameObjects;
using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent; // Hmm...
namespace Content.Server.Medical
@@ -28,6 +28,7 @@ namespace Content.Server.Medical
[Dependency] private readonly CloningConsoleSystem _cloningConsoleSystem = default!;
[Dependency] private readonly MobStateSystem _mobStateSystem = default!;
[Dependency] private readonly ContainerSystem _containerSystem = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
private const float UpdateRate = 1f;
private float _updateDif;
@@ -181,7 +182,7 @@ namespace Content.Server.Medical
{
if (TryComp<AppearanceComponent>(scannerComponent.Owner, out var appearance))
{
appearance.SetData(MedicalScannerVisuals.Status, GetStatus(scannerComponent));
_appearance.SetData(uid, MedicalScannerVisuals.Status, GetStatus(scannerComponent), appearance);
}
}