Skip to content

Commit

Permalink
Fix: wrong api name conversion for Fish the Rabbit (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
appable authored Jun 2, 2024
1 parent 831ef83 commit 96e75fb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ object HoppityCollectionData {
?: ChocolateBonuses(0, 0.0)
}

private fun String.toApiName(): String =
lowercase().replace("[- ]".toRegex(), "_")
private fun String.toApiName(): String = when (this) {
"Fish the Rabbit" -> "fish"
else -> lowercase().replace("[- ]".toRegex(), "_")
}

@SubscribeEvent
fun onNeuRepoReload(event: NeuRepositoryReloadEvent) {
Expand Down

0 comments on commit 96e75fb

Please sign in to comment.