diff --git a/Content.Server/Bed/Sleep/SleepingSystem.cs b/Content.Server/Bed/Sleep/SleepingSystem.cs index 209b135df0..6a94a834ba 100644 --- a/Content.Server/Bed/Sleep/SleepingSystem.cs +++ b/Content.Server/Bed/Sleep/SleepingSystem.cs @@ -10,6 +10,7 @@ using Content.Shared.IdentityManagement; using Content.Shared.Interaction; using Content.Shared.MobState; using Content.Shared.MobState.Components; +using Content.Shared.Slippery; using Content.Shared.Stunnable; using Content.Shared.Verbs; using Robust.Shared.Audio; @@ -39,6 +40,7 @@ namespace Content.Server.Bed.Sleep SubscribeLocalEvent>(AddWakeVerb); SubscribeLocalEvent(OnInteractHand); SubscribeLocalEvent(OnExamined); + SubscribeLocalEvent(OnSlip); SubscribeLocalEvent(OnInit); } @@ -157,6 +159,12 @@ namespace Content.Server.Bed.Sleep args.PushMarkup(Loc.GetString("sleep-examined", ("target", Identity.Entity(uid, EntityManager)))); } } + + private void OnSlip(EntityUid uid, SleepingComponent component, SlipAttemptEvent args) + { + args.Cancel(); + } + private void OnInit(EntityUid uid, ForcedSleepingComponent component, ComponentInit args) { TrySleeping(uid);