Fix double vault do_after (#16743)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user