From ac283f803cccfbe08f2db278b3b293f53657e91d Mon Sep 17 00:00:00 2001 From: Syndromeramo Date: Tue, 7 Oct 2025 14:26:57 -0500 Subject: [PATCH] Removed redundant hasSpaceFor function. --- Server/src/main/core/api/ContentAPI.kt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Server/src/main/core/api/ContentAPI.kt b/Server/src/main/core/api/ContentAPI.kt index 31f7fb02c..cca729909 100644 --- a/Server/src/main/core/api/ContentAPI.kt +++ b/Server/src/main/core/api/ContentAPI.kt @@ -684,17 +684,6 @@ fun hasSpaceFor(player: Player, item: Item): Boolean { return player.inventory.hasSpaceFor(item) } -/** - * Checks if a player has space for an item - * @param player the player whose inventory to check - * @param item the item ID to check against - * @param amount the amount of the item (default 1) to check for - * @return true if the player's inventory has space for the item - */ -fun hasSpaceFor(player: Player, item: Int, amount: Int = 1): Boolean { - return hasSpaceFor(player, Item(item, amount)) -} - /** * Get the number of ticks passed since server startup */