From e1a2329b0017df511fa79246734c5f7cf5cc5e89 Mon Sep 17 00:00:00 2001 From: Milon Date: Sat, 21 Sep 2024 17:38:48 +0200 Subject: [PATCH] non-working shit --- Content.Client/Overlays/EquipmentHudSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Client/Overlays/EquipmentHudSystem.cs b/Content.Client/Overlays/EquipmentHudSystem.cs index c7578b6793f5e9..80b0d7c6e1be07 100644 --- a/Content.Client/Overlays/EquipmentHudSystem.cs +++ b/Content.Client/Overlays/EquipmentHudSystem.cs @@ -104,7 +104,9 @@ protected virtual void OnRefreshComponentHud(EntityUid uid, T component, Refresh private void RefreshOverlay(EntityUid uid) { - if (uid != _player.LocalSession?.AttachedEntity) + if (_player.LocalSession?.AttachedEntity != null) + uid = _player.LocalSession.AttachedEntity.Value; + else return; var ev = new RefreshEquipmentHudEvent(TargetSlots);