]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix hand examine (#21309)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Sat, 4 Nov 2023 12:50:05 +0000 (08:50 -0400)
committerGitHub <noreply@github.com>
Sat, 4 Nov 2023 12:50:05 +0000 (15:50 +0300)
Content.Shared/Hands/EntitySystems/SharedHandsSystem.Interactions.cs

index dfa72fcfb7fa5f16839183c386e4edf14ad90978..712e0192db0f3070929385cbfb0d7547ec873d2b 100644 (file)
@@ -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<HandVirtualItemComponent>(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<HandVirtualItemComponent>(x))
             .Select(x => Loc.GetString("comp-hands-examine-wrapper",
                 ("item", Identity.Entity(x, EntityManager)))).ToList());