]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix multi handed items (#38603)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Thu, 26 Jun 2025 15:29:22 +0000 (17:29 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Jun 2025 15:29:22 +0000 (17:29 +0200)
Content.Shared/Item/MultiHandedItemSystem.cs

index f17ccdc922a48cb0f02d57472491195de8fe70f0..db64610eaec8780576c496a1311ad65e7d09ab2c 100644 (file)
@@ -37,7 +37,7 @@ public sealed class MultiHandedItemSystem : EntitySystem
 
     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;
 
         args.Cancel();