This commit is contained in:
Rane
2022-07-27 00:46:24 -04:00
committed by GitHub
parent 963ddd507b
commit 1c8bdaf7c4
53 changed files with 698 additions and 36 deletions

View File

@@ -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)