Skip to content

Commit

Permalink
Update Player.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Nameless <85962933+Misfiy@users.noreply.github.com>
  • Loading branch information
VALERA771 and Misfiy authored Aug 12, 2024
1 parent 2450b55 commit d4f258e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXILED/Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,7 @@ public ushort GetAmmoLimit(AmmoType type, bool ignoreArmor = false)
/// <param name="type">The <see cref="AmmoType"/> of the ammo to check.</param>
/// <returns>The maximum amount of ammo this player can carry.</returns>
[Obsolete("Use Player::GetAmmoLimit(AmmoType, bool) instead.")]
public ushort GetAmmoLimit(AmmoType type)
public int GetAmmoLimit(AmmoType type)
{
return (int)InventorySystem.Configs.InventoryLimits.GetAmmoLimit(type.GetItemType(), referenceHub);
}
Expand Down

0 comments on commit d4f258e

Please sign in to comment.