From 0ed70b4f37824f5f8768350848f576428c6def62 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 28 Mar 2023 01:06:25 -0400 Subject: [PATCH] fix sprite exceptions for cuffs (#14912) --- Content.Client/Cuffs/CuffableSystem.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Content.Client/Cuffs/CuffableSystem.cs b/Content.Client/Cuffs/CuffableSystem.cs index 76d9ce1639..42d0ae03fe 100644 --- a/Content.Client/Cuffs/CuffableSystem.cs +++ b/Content.Client/Cuffs/CuffableSystem.cs @@ -26,15 +26,7 @@ public sealed class CuffableSystem : SharedCuffableSystem return; component.Cuffing = state.Cuffing; - - if (state.IconState == string.Empty) - return; - - if (TryComp(uid, out var sprite)) - { - // If you think this should be an explicit layer look at the YML and see https://github.com/space-wizards/space-station-14/issues/14771 - sprite.LayerSetState(0, state.IconState); - } + component.OverlayIconState = state.IconState; } private void OnCuffableShutdown(EntityUid uid, CuffableComponent component, ComponentShutdown args) -- 2.51.2