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 b51cf51 commit 2450b55
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 @@ -2419,7 +2419,7 @@ public ushort GetAmmoLimit(AmmoType type, bool ignoreArmor = false)
[Obsolete("Use Player::GetAmmoLimit(AmmoType, bool) instead.")]
public ushort GetAmmoLimit(AmmoType type)
{
return InventorySystem.Configs.InventoryLimits.GetAmmoLimit(type.GetItemType(), referenceHub);
return (int)InventorySystem.Configs.InventoryLimits.GetAmmoLimit(type.GetItemType(), referenceHub);

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)

Check failure on line 2422 in EXILED/Exiled.API/Features/Player.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)
}

/// <summary>
Expand Down

0 comments on commit 2450b55

Please sign in to comment.