hands ECS (#7081)
This commit is contained in:
@@ -75,15 +75,10 @@ public sealed partial class GunSystem
|
||||
return;
|
||||
}
|
||||
|
||||
var itemComponent = EntityManager.GetComponent<SharedItemComponent>(ammo.Value);
|
||||
if (!handsComponent.CanPutInHand(itemComponent))
|
||||
if (!_handsSystem.TryPickup(args.User, ammo.Value, handsComp: handsComponent))
|
||||
{
|
||||
EjectCasing(ammo.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
handsComponent.PutInHand(itemComponent);
|
||||
}
|
||||
|
||||
UpdateSpeedLoaderAppearance(component);
|
||||
args.Handled = true;
|
||||
|
||||
Reference in New Issue
Block a user