From 119f930f5a910e3c645fe01c0915681984b6eab8 Mon Sep 17 00:00:00 2001
From: Misaka-ZeroTwo <45165615+Misaka-ZeroTwo@users.noreply.github.com>
Date: Wed, 14 Aug 2024 00:08:25 +0800
Subject: [PATCH] Fix breaking change (#61)
Fix a breaking change in #9
---
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.
///