From abedb7ead429d461ee2bab4d1e7977ba1e42b7de Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 9 Mar 2024 18:19:55 +0100 Subject: Fixed not using ordinal correctly at trophy fishing --- .../hannibal2/skyhanni/features/fishing/trophy/TrophyFishMessages.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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) { -- cgit