From 95f940741c40807452e866ee1a6ac7e74fb53b9f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 17 Jan 2023 22:43:57 +0100 Subject: Changed chat design. --- .../java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt | 6 +++--- .../nether/reputationhelper/miniboss/DailyMiniBossHelper.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt index a204f504f..c83e28ae8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt @@ -100,11 +100,11 @@ class BarnFishingTimer { if (currentCount == 0) return val duration = System.currentTimeMillis() - startTime - val barnTimerAlertTime = SkyHanniMod.feature.fishing.barnTimerAlertTime * 1_000 val color = if (duration > barnTimerAlertTime) "§c" else "§e" - val format = StringUtils.formatDuration(duration / 1000, decimalFormat = true) - val text = "$color$format §8(§e$currentCount §bsea creatures§8)" + val timeFormat = StringUtils.formatDuration(duration / 1000, decimalFormat = true) + val name = if (currentCount == 1) "sea creature" else "sea creatures" + val text = "$color$timeFormat §8(§e$currentCount §b$name§8)" SkyHanniMod.feature.fishing.barnTimerPos.renderString(text) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt index 734b97daa..b959c3776 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt @@ -51,9 +51,9 @@ class DailyMiniBossHelper(private val reputationHelper: CrimsonIsleReputationHel val done = miniBosses.count { it.doneToday } // val sneaking = Minecraft.getMinecraft().thePlayer.isSneaking // if (done != 5 || sneaking) { + display.add("") + display.add("Daily Bosses ($done/5 killed)") if (done != 5) { - display.add("") - display.add("Daily Bosses ($done/5 killed)") for (miniBoss in miniBosses) { display.add(" " + renderBoss(miniBoss)) } -- cgit