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

@@ -76,7 +76,8 @@ public sealed partial class BuckleSystem
private void HandleInteractHand(EntityUid uid, BuckleComponent component, InteractHandEvent args)
{
args.Handled = TryUnbuckle(uid, args.User, buckle: component);
if (TryUnbuckle(uid, args.User, buckle: component))
args.Handled = true;
}
private void MoveEvent(EntityUid uid, BuckleComponent buckle, ref MoveEvent ev)

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;
}
}