From 6a6bb74c2e08a7ac22e9cc1a12d9f800ff895288 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 21 May 2023 20:26:59 +0200 Subject: Fixed Minions price profit display is visible outside the minion inventory --- .../java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt index 69beaa303..623aec65a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt @@ -176,10 +176,10 @@ class MinionFeatures { val duration = minions?.get(loc)?.let { val lastClicked = it.lastClicked if (lastClicked == 0L) { - return "Can't calculate coins/day: No time data available!" + return "§cCan't calculate coins/day: No time data available!" } System.currentTimeMillis() - lastClicked - } ?: return "Can't calculate coins/day: No time data available!" + } ?: return "§cCan't calculate coins/day: No time data available!" //§7Held Coins: §b151,389 val coins = line.split(": §b")[1].replace(",", "").toDouble() @@ -277,6 +277,9 @@ class MinionFeatures { @SubscribeEvent(priority = EventPriority.LOWEST) fun renderOverlay(event: GuiScreenEvent.BackgroundDrawnEvent) { + if (!LorenzUtils.inSkyBlock) return + if (!minionInventoryOpen) return + if (config.hopperProfitDisplay) { config.hopperProfitPos.renderString(coinsPerDay, posLabel = "Minion Coins Per Day") } -- cgit