aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/fishing
diff options
context:
space:
mode:
authoralexia <me@alexia.lol>2024-02-16 08:55:11 +0100
committerGitHub <noreply@github.com>2024-02-16 08:55:11 +0100
commit24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750 (patch)
tree65bdc64bb157d5574a53cb05197de33c034312f6 /src/main/java/at/hannibal2/skyhanni/features/fishing
parent20f087a2597ee46260c949414bed3ce16df8a8bb (diff)
downloadskyhanni-24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750.tar.gz
skyhanni-24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750.tar.bz2
skyhanni-24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750.zip
Clean up string pluralization methods. #975
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
index 4257d7790..130daa29c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
@@ -113,7 +113,7 @@ class FishingTimer {
val barnTimerAlertTime = config.alertTime * 1_000
val color = if (duration > barnTimerAlertTime) "§c" else "§e"
val timeFormat = TimeUtils.formatDuration(duration, biggestUnit = TimeUnit.MINUTE)
- val name = StringUtils.canBePlural(currentCount, "sea creature", "sea creatures")
+ val name = StringUtils.pluralize(currentCount, "sea creature")
val text = "$color$timeFormat §8(§e$currentCount §b$name§8)"
config.pos.renderString(text, posLabel = "BarnTimer")