diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-09 18:19:55 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-09 18:19:55 +0100 |
commit | abedb7ead429d461ee2bab4d1e7977ba1e42b7de (patch) | |
tree | b0ffc0ec4dceb38348cd06600312a0d24788405f /src/main/java | |
parent | 4ea3dc07ed0cb799f94b866657b7e32fc8270c56 (diff) | |
download | skyhanni-abedb7ead429d461ee2bab4d1e7977ba1e42b7de.tar.gz skyhanni-abedb7ead429d461ee2bab4d1e7977ba1e42b7de.tar.bz2 skyhanni-abedb7ead429d461ee2bab4d1e7977ba1e42b7de.zip |
Fixed not using ordinal correctly at trophy fishing
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt | 5 |
1 files changed, 3 insertions, 2 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 cd8f367dd..1a6bdfe66 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 @@ -58,7 +58,7 @@ class TrophyFishMessages { edited = ChatComponentText( "§6§lTROPHY FISH! " + when (config.design) { DesignFormat.STYLE_1 -> if (amount == 1) "§c§lFIRST §r$displayRarity $displayName" - else "§7$amount. §r$displayRarity $displayName" + else "§7$amount${amount.ordinal()} §r$displayRarity $displayName" DesignFormat.STYLE_2 -> "§bYou caught a $displayName $displayRarity§b. §7(${amount.addSeparators()})" else -> "§bYou caught your ${amount.addSeparators()}${amount.ordinal()} $displayRarity $displayName§b." @@ -68,7 +68,8 @@ class TrophyFishMessages { if (config.totalAmount) { val total = trophyFishCounts.sumAllValues() - edited.appendSibling(ChatComponentText(" §7(${total.addSeparators()}. total)")) + + edited.appendSibling(ChatComponentText(" §7(${total.addSeparators()}${total.ordinal()} total)")) } if (config.tooltip) { |