]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix for inspecting entities in hand (#33642)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Sat, 30 Nov 2024 16:14:39 +0000 (08:14 -0800)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 16:14:39 +0000 (17:14 +0100)
Actually inspect entity in hands

Content.Client/UserInterface/Systems/Hands/HandsUIController.cs

index 9ee429ba7e99aa58e184be83ef003cc3f2d8b398..edc02600611c036daed5ec023afa003d8ed2eecc 100644 (file)
@@ -83,22 +83,27 @@ public sealed class HandsUIController : UIController, IOnStateEntered<GameplaySt
         if (args.Function == EngineKeyFunctions.UIClick)
         {
             _handsSystem.UIHandClick(_playerHandsComponent, hand.SlotName);
+            args.Handle();
         }
         else if (args.Function == EngineKeyFunctions.UseSecondary)
         {
             _handsSystem.UIHandOpenContextMenu(hand.SlotName);
+            args.Handle();
         }
         else if (args.Function == ContentKeyFunctions.ActivateItemInWorld)
         {
             _handsSystem.UIHandActivate(hand.SlotName);
+            args.Handle();
         }
         else if (args.Function == ContentKeyFunctions.AltActivateItemInWorld)
         {
             _handsSystem.UIHandAltActivateItem(hand.SlotName);
+            args.Handle();
         }
         else if (args.Function == ContentKeyFunctions.ExamineEntity)
         {
             _handsSystem.UIInventoryExamine(hand.SlotName);
+            args.Handle();
         }
     }