From 4a8520f031048f5c41cbb5d9289465ede60d9715 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 16 Jun 2024 10:16:21 +0200 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt | 2 +- .../at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt index 19aa098f6..d621aa081 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt @@ -164,7 +164,7 @@ object VisitorAPI { REFUSED("§cRefused", LorenzColor.RED.toColor().withAlpha(60)), } - fun visitorsInTabList(tabList: List): MutableList { + fun visitorsInTabList(tabList: List): List { var visitorCount = 0 var found = false var visitorsRemaining = 0 diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt index 731a8ca4a..383ecc135 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt @@ -130,7 +130,7 @@ object MineshaftPityDisplay { if (!lastMineshaftSpawn.isFarPast()) { hover.add("") - hover.add("§7Time since Last Mineshaft: §e${lastMineshaftSpawn.passedSince().format()}") + hover.add("§7Time since Last Mineshaft: §b${lastMineshaftSpawn.passedSince().format()}") } resetCounter() @@ -207,7 +207,7 @@ object MineshaftPityDisplay { put( MineshaftPityLines.CHANCE, Renderable.string( - "§3Chance: §e1§6/§e${chance.round(1)} §7(§b${((1.0 / chance) * 100).addSeparators()}%§7)", + "§3Chance: §e1§6/§e${chance.round(1).addSeparators()} §7(§b${((1.0 / chance) * 100).addSeparators()}%§7)", ), ) put(MineshaftPityLines.NEEDED_TO_PITY, neededToPityRenderable) -- cgit