aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-03 04:01:46 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-03 04:01:46 +0200
commit9ece114ffbb691e92d0c47eac56b017c3d2513d8 (patch)
treea50f5a0f0608a019b20e0d72a356ae48b021ac8a /src/main/java/at/hannibal2
parenta11a97d16a9aea4ed99d9039dbcd6445ea69bc22 (diff)
downloadskyhanni-9ece114ffbb691e92d0c47eac56b017c3d2513d8.tar.gz
skyhanni-9ece114ffbb691e92d0c47eac56b017c3d2513d8.tar.bz2
skyhanni-9ece114ffbb691e92d0c47eac56b017c3d2513d8.zip
random code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt
index 423a393f1..4a0b6080e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt
@@ -48,13 +48,15 @@ class TrophyFishMessages {
" §7(${total.addSeparators()}. total)"
} else ""
- val component = ChatComponentText(if (config.trophyCounter) {
- "§6§lTROPHY FISH! " + when (config.trophyDesign) {
- 0 -> "§7$amount. §r$displayRarity $displayName$totalText"
- 1 -> "§bYou caught a $displayName $displayRarity§b. §7(${amount.addSeparators()})$totalText"
- else -> "§bYou caught your ${amount.addSeparators()}${amount.ordinal()} $displayRarity $displayName§b.$totalText"
- }
- } else event.message)
+ val component = ChatComponentText(
+ if (config.trophyCounter) {
+ "§6§lTROPHY FISH! " + when (config.trophyDesign) {
+ 0 -> "§7$amount. §r$displayRarity $displayName$totalText"
+ 1 -> "§bYou caught a $displayName $displayRarity§b. §7(${amount.addSeparators()})$totalText"
+ else -> "§bYou caught your ${amount.addSeparators()}${amount.ordinal()} $displayRarity $displayName§b.$totalText"
+ }
+ } else event.message
+ )
if (config.trophyFishTooltip) {
TrophyFishManager.getInfo(internalName)?.let {