aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionData.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionData.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionData.kt
index 4d44b9ca8..e6e5ead99 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionData.kt
@@ -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) {