mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-22 10:55:13 -06:00
Lets not crash things if the party is undersized :D
This commit is contained in:
parent
19afda03eb
commit
2308b42559
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ fun setHealerTeamIfaceSlot(player: Player,slot: Int){
|
|||
fun getPlayerHealerIfaceSlot(player:Player,slot: Int): Player? {
|
||||
val team = player.baSession?.team
|
||||
val others = team?.allPlayers()?.filter { it != player }
|
||||
return others?.get(slot)
|
||||
return others?.getOrNull(slot)
|
||||
}
|
||||
|
||||
fun HealerIfaceMedicHelp(player: Player, other: Player, toggle: Boolean = false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue