From 7a2a3ce9a73f476ce664a3dc75c2f9f67b56a395 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Sat, 4 Nov 2023 08:50:05 -0400 Subject: [PATCH] fix hand examine (#21309) --- .../Hands/EntitySystems/SharedHandsSystem.Interactions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Hands/EntitySystems/SharedHandsSystem.Interactions.cs b/Content.Shared/Hands/EntitySystems/SharedHandsSystem.Interactions.cs index dfa72fcfb7..712e0192db 100644 --- a/Content.Shared/Hands/EntitySystems/SharedHandsSystem.Interactions.cs +++ b/Content.Shared/Hands/EntitySystems/SharedHandsSystem.Interactions.cs @@ -182,7 +182,9 @@ public abstract partial class SharedHandsSystem : EntitySystem //TODO: Actually shows all items/clothing/etc. private void HandleExamined(EntityUid uid, HandsComponent handsComp, ExaminedEvent args) { - var held = EnumerateHeld(uid, handsComp).ToList(); + var held = EnumerateHeld(uid, handsComp) + .Where(x => !HasComp(x)).ToList(); + if (!held.Any()) { args.PushText(Loc.GetString("comp-hands-examine-empty", @@ -191,7 +193,6 @@ public abstract partial class SharedHandsSystem : EntitySystem } var heldList = ContentLocalizationManager.FormatList(held - .Where(x => !HasComp(x)) .Select(x => Loc.GetString("comp-hands-examine-wrapper", ("item", Identity.Entity(x, EntityManager)))).ToList());