Fix strip menu opening on regular click (#14272)

This commit is contained in:
Vasilis The Pikachu
2023-02-25 18:17:40 +01:00
committed by GitHub
parent 2351bbb607
commit c6407f6bdf
2 changed files with 4 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ public sealed class InteractionPopupSystem : EntitySystem
if (HasComp<SleepingComponent>(uid))
return;
args.Handled = true;
var curTime = _gameTiming.CurTime;
if (curTime < component.LastInteractTime + component.InteractDelay)
@@ -85,6 +87,5 @@ public sealed class InteractionPopupSystem : EntitySystem
}
component.LastInteractTime = curTime;
args.Handled = true;
}
}