Fix double vault do_after (#16743)

This commit is contained in:
metalgearsloth
2023-05-24 17:08:04 +10:00
committed by GitHub
parent 3c028e4f4b
commit d2bfb3e2b9
3 changed files with 4 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ using Content.Shared.DragDrop;
using Robust.Shared.Configuration;
using Content.Shared.Popups;
using Content.Shared.IdentityManagement;
using Content.Shared.Interaction.Components;
using Robust.Shared.Player;
using Robust.Shared.Serialization;
@@ -72,7 +73,7 @@ public sealed class BonkSystem : EntitySystem
private void OnDragDrop(EntityUid uid, BonkableComponent component, ref DragDropTargetEvent args)
{
if (args.Handled)
if (args.Handled || !HasComp<ClumsyComponent>(args.Dragged))
return;
var doAfterArgs = new DoAfterArgs(args.Dragged, component.BonkDelay, new BonkDoAfterEvent(), uid, target: uid)