mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Removed redundant hasSpaceFor function.
This commit is contained in:
parent
f64c765df3
commit
ac283f803c
1 changed files with 0 additions and 11 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue