Fix multi handed items (#38603)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user