Skip to content

Commit

Permalink
fix(plugin24): use correct Ship for teamStats
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Oct 3, 2023
1 parent d113b9f commit 4a29388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/src/main/kotlin/sc/plugin2024/GameState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ data class GameState @JvmOverloads constructor(
override fun teamStats(team: ITeam): List<Pair<String, Int>> =
ships.first { it.team == team }.let {
listOf(
"Passagiere" to currentShip.passengers,
"Geschwindigkeit" to currentShip.speed,
"Kohle" to currentShip.coal,
"Passagiere" to it.passengers,
"Geschwindigkeit" to it.speed,
"Kohle" to it.coal,
)
}

Expand Down

0 comments on commit 4a29388

Please sign in to comment.