Removed redundant hasSpaceFor function.

This commit is contained in:
Syndromeramo 2025-10-07 14:26:57 -05:00
parent f64c765df3
commit ac283f803c

View file

@ -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
*/