]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Strip menu will no longer open when trying to wake sleeping players (#14319)
authorVasilis The Pikachu <vasilis@pikachu.systems>
Mon, 13 Mar 2023 03:29:26 +0000 (04:29 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 03:29:26 +0000 (23:29 -0400)
Content.Server/Bed/Sleep/SleepingSystem.cs

index 68eb7b0fd28712537c1025e8f0cc13c2a1c16d92..c52bd480ecb44bf2a062f00e8a1f7cbd43498c1d 100644 (file)
@@ -148,10 +148,11 @@ namespace Content.Server.Bed.Sleep
         /// </summary>
         private void OnInteractHand(EntityUid uid, SleepingComponent component, InteractHandEvent args)
         {
+            args.Handled = true;
+
             if (!TryWakeCooldown(uid))
                 return;
 
-            args.Handled = true;
             TryWaking(args.Target, user: args.User);
         }