From: Vasilis The Pikachu Date: Mon, 13 Mar 2023 03:29:26 +0000 (+0100) Subject: Strip menu will no longer open when trying to wake sleeping players (#14319) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=65aca018954bcc57e348f945b6fae20f6c7f67b0;p=space-station-14.git Strip menu will no longer open when trying to wake sleeping players (#14319) --- 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); }