Skip to content

Commit

Permalink
Fixed wielding weapons while pulling object without hands (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
stalengd authored Aug 7, 2024
1 parent 74acd1a commit 3c9d606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Shared/Wieldable/WieldableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Content.Shared.Interaction.Events;
using Content.Shared.Inventory.VirtualItem;
using Content.Shared.Item;
using Content.Shared.Movement.Pulling.Components;
using Content.Shared.Movement.Pulling.Systems;
using Content.Shared.Popups;
using Content.Shared.Timing;
Expand Down Expand Up @@ -197,7 +198,7 @@ public bool CanWield(EntityUid uid, WieldableComponent component, EntityUid user
return false;
}
//ss220 weild fix begin
if (_pull.IsPulling(user))
if (TryComp<PullerComponent>(user, out var puller) && _pull.IsPulling(user, puller) && puller.NeedsHands)
return false;
//ss220 weild fix end

Expand Down

0 comments on commit 3c9d606

Please sign in to comment.