From 65aca018954bcc57e348f945b6fae20f6c7f67b0 Mon Sep 17 00:00:00 2001 From: Vasilis The Pikachu Date: Mon, 13 Mar 2023 04:29:26 +0100 Subject: [PATCH] Strip menu will no longer open when trying to wake sleeping players (#14319) --- Content.Server/Bed/Sleep/SleepingSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Bed/Sleep/SleepingSystem.cs b/Content.Server/Bed/Sleep/SleepingSystem.cs index 68eb7b0fd2..c52bd480ec 100644 --- a/Content.Server/Bed/Sleep/SleepingSystem.cs +++ b/Content.Server/Bed/Sleep/SleepingSystem.cs @@ -148,10 +148,11 @@ namespace Content.Server.Bed.Sleep /// 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); }