fix sprite exceptions for cuffs (#14912)
This commit is contained in:
parent
25c89539ba
commit
0ed70b4f37
|
|
@ -26,15 +26,7 @@ public sealed class CuffableSystem : SharedCuffableSystem
|
||||||
return;
|
return;
|
||||||
|
|
||||||
component.Cuffing = state.Cuffing;
|
component.Cuffing = state.Cuffing;
|
||||||
|
component.OverlayIconState = state.IconState;
|
||||||
if (state.IconState == string.Empty)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (TryComp<SpriteComponent>(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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnCuffableShutdown(EntityUid uid, CuffableComponent component, ComponentShutdown args)
|
private void OnCuffableShutdown(EntityUid uid, CuffableComponent component, ComponentShutdown args)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue