cargo system cleanup (#13396)

This commit is contained in:
Checkraze
2023-01-10 04:55:59 -05:00
committed by GitHub
parent 394107742c
commit 66a01ccbf2
5 changed files with 26 additions and 18 deletions

View File

@@ -7,6 +7,8 @@ namespace Content.Client.Cargo.Systems;
public sealed partial class CargoSystem
{
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
private static readonly Animation CargoTelepadBeamAnimation = new()
{
Length = TimeSpan.FromSeconds(0.5),
@@ -65,7 +67,7 @@ public sealed partial class CargoSystem
if (!Resolve(component.Owner, ref sprite))
return;
component.TryGetData(CargoTelepadVisuals.State, out CargoTelepadState? state);
_appearance.TryGetData(component.Owner, CargoTelepadVisuals.State, out CargoTelepadState? state);
AnimationPlayerComponent? player = null;
switch (state)