Remove some obsolete AppearanceComponent method usages (#13726)
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Server.Light.Components;
|
||||
using Content.Shared.Destructible;
|
||||
using Content.Shared.Light;
|
||||
using Content.Shared.Throwing;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
@@ -9,6 +10,8 @@ namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
public sealed class LightBulbSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -75,8 +78,8 @@ namespace Content.Server.Light.EntitySystems
|
||||
return;
|
||||
|
||||
// try to update appearance and color
|
||||
appearance.SetData(LightBulbVisuals.State, bulb.State);
|
||||
appearance.SetData(LightBulbVisuals.Color, bulb.Color);
|
||||
_appearance.SetData(uid, LightBulbVisuals.State, bulb.State, appearance);
|
||||
_appearance.SetData(uid, LightBulbVisuals.Color, bulb.Color, appearance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user