aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorappable <enzospiacitelli@gmail.com>2024-06-01 22:56:34 -0700
committerGitHub <noreply@github.com>2024-06-02 07:56:34 +0200
commit96e75fbb8986555ba28c1e016265f3d12d7dd2d1 (patch)
tree45fef69e7c75f6b78a4cc4b46bba661c9a13b75c /src/main/java
parent831ef83a74384f7bc89a469b8aa621df5a271e0a (diff)
downloadskyhanni-96e75fbb8986555ba28c1e016265f3d12d7dd2d1.tar.gz
skyhanni-96e75fbb8986555ba28c1e016265f3d12d7dd2d1.tar.bz2
skyhanni-96e75fbb8986555ba28c1e016265f3d12d7dd2d1.zip
Fix: wrong api name conversion for Fish the Rabbit (#1975)
Diffstat (limited to 'src/main/java')
-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) {