Fix multi handed items (#38603)

This commit is contained in:
slarticodefast
2025-06-26 17:29:22 +02:00
committed by GitHub
parent 4af6c8461f
commit faec9bd83b

View File

@@ -37,7 +37,7 @@ public sealed class MultiHandedItemSystem : EntitySystem
private void OnAttemptPickup(Entity<MultiHandedItemComponent> ent, ref GettingPickedUpAttemptEvent args) private void OnAttemptPickup(Entity<MultiHandedItemComponent> ent, ref GettingPickedUpAttemptEvent args)
{ {
if (_hands.CountFreeHands(ent.Owner) >= ent.Comp.HandsNeeded) if (_hands.CountFreeHands(args.User) >= ent.Comp.HandsNeeded)
return; return;
args.Cancel(); args.Cancel();