From fe41f5e2348f5e38df5a33318ca878a62bd7496a Mon Sep 17 00:00:00 2001 From: Misaka_ZeroTwo <45165615+Misaka-ZeroTwo@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:39:55 +0800 Subject: [PATCH] fix yamato skill issue --- EXILED/Exiled.API/Features/Player.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs index 314817264..0a2b20b4f 100644 --- a/EXILED/Exiled.API/Features/Player.cs +++ b/EXILED/Exiled.API/Features/Player.cs @@ -2478,6 +2478,15 @@ public void ResetAmmoLimit(AmmoType ammoType) /// If the player has a custom limit for the specific . public bool HasCustomAmmoLimit(AmmoType ammoType) => CustomAmmoLimits.ContainsKey(ammoType); + /// + /// Gets the maximum amount of an the player can hold, based on the armor the player is wearing, as well as server configuration. + /// + /// The to check. + /// The maximum amount of items in the category that the player can hold. + [Obsolete("Use Player::GetCategoryLimit(ItemCategory, bool) instead.")] + public int GetCategoryLimit(ItemCategory category) => + InventorySystem.Configs.InventoryLimits.GetCategoryLimit(category, referenceHub); + /// /// Gets the maximum amount of an the player can hold, based on the armor the player is wearing, as well as server configuration. ///