diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-21 20:26:59 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-21 20:26:59 +0200 |
commit | 6a6bb74c2e08a7ac22e9cc1a12d9f800ff895288 (patch) | |
tree | 2e81d7e975eedbfb0e5192057a615d585ba37391 /src | |
parent | cc7f4e3ebd476320d0f8750432c0de2e58588272 (diff) | |
download | skyhanni-6a6bb74c2e08a7ac22e9cc1a12d9f800ff895288.tar.gz skyhanni-6a6bb74c2e08a7ac22e9cc1a12d9f800ff895288.tar.bz2 skyhanni-6a6bb74c2e08a7ac22e9cc1a12d9f800ff895288.zip |
Fixed Minions price profit display is visible outside the minion inventory
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 7 |
1 files changed, 5 insertions, 2 deletions
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") } |