using Content.Shared.IconSmoothing; using Robust.Client.GameObjects; namespace Content.Client.IconSmoothing; public sealed partial class ClientRandomIconSmoothSystem : SharedRandomIconSmoothSystem { [Dependency] private IconSmoothSystem _iconSmooth = default!; [SubscribeLocalEvent] private void OnAppearanceChange(Entity ent, ref AppearanceChangeEvent args) { if (!TryComp(ent, out var smooth)) return; if (!args.TryGetData(RandomIconSmoothState.State, out var state)) return; smooth.StateBase = state; _iconSmooth.SetStateBase(ent, smooth, state); } }