From 24b0c5f7313fd3f91e4f6e7686b6bac8c38d7750 Mon Sep 17 00:00:00 2001 From: alexia Date: Fri, 16 Feb 2024 08:55:11 +0100 Subject: Clean up string pluralization methods. #975 --- src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing') 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") -- cgit