Sleeping (#9793)
This commit is contained in:
@@ -7,7 +7,7 @@ using Robust.Shared.Audio;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Random;
|
||||
|
||||
using Content.Shared.Bed.Sleep;
|
||||
|
||||
namespace Content.Server.Interaction;
|
||||
|
||||
@@ -28,6 +28,10 @@ public sealed class InteractionPopupSystem : EntitySystem
|
||||
if (args.Handled || args.User == args.Target)
|
||||
return;
|
||||
|
||||
//Handling does nothing and this thing annoyingly plays way too often.
|
||||
if (HasComp<SleepingComponent>(uid))
|
||||
return;
|
||||
|
||||
var curTime = _gameTiming.CurTime;
|
||||
|
||||
if (curTime < component.LastInteractTime + component.InteractDelay)
|
||||
|
||||
Reference in New Issue
Block a user