Add a bool to disable buckling on InteractHand (#30001)

This commit is contained in:
ShadowCommander
2024-08-25 10:09:51 -07:00
committed by GitHub
parent 2d70c7d473
commit 5c0753b136
3 changed files with 8 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ public abstract partial class SharedBuckleSystem
if (!TryComp(args.User, out BuckleComponent? buckle))
return;
if (buckle.BuckledTo == null)
if (buckle.BuckledTo == null && component.BuckleOnInteractHand)
TryBuckle(args.User, args.User, uid, buckle, popup: true);
else if (buckle.BuckledTo == uid)
TryUnbuckle(args.User, args.User, buckle, popup: true);