From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Sat, 4 Nov 2023 12:50:05 +0000 (-0400) Subject: fix hand examine (#21309) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=7a2a3ce9a73f476ce664a3dc75c2f9f67b56a395;p=space-station-14.git fix hand examine (#21309) --- 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());