Fix strip menu opening on regular click (#14272)
This commit is contained in:
committed by
GitHub
parent
2351bbb607
commit
c6407f6bdf
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user