From 2450b551dd8779640c1ac7ee2ff7faba2b036ead Mon Sep 17 00:00:00 2001 From: VALERA771 <72030575+VALERA771@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:01:10 +0300 Subject: [PATCH] Update Player.cs Co-authored-by: Nameless <85962933+Misfiy@users.noreply.github.com> --- EXILED/Exiled.API/Features/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs index 9b12340d4..66cb6754d 100644 --- a/EXILED/Exiled.API/Features/Player.cs +++ b/EXILED/Exiled.API/Features/Player.cs @@ -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); } ///