Hugging yourself no longer allowed (#8103)

!1984.

I want to hug the other person damnit.
This commit is contained in:
metalgearsloth
2022-05-12 12:56:02 +10:00
committed by GitHub
parent 12b7bf78b7
commit e6aeaa2f2f
2 changed files with 55 additions and 56 deletions

View File

@@ -13,8 +13,8 @@ namespace Content.Server.Interaction;
public sealed class InteractionPopupSystem : EntitySystem
{
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
public override void Initialize()
{
@@ -24,7 +24,7 @@ public sealed class InteractionPopupSystem : EntitySystem
private void OnInteractHand(EntityUid uid, InteractionPopupComponent component, InteractHandEvent args)
{
if (args.Handled)
if (args.Handled || args.User == args.Target)
return;
var curTime = _gameTiming.CurTime;