aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-21 20:26:59 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-21 20:26:59 +0200
commit6a6bb74c2e08a7ac22e9cc1a12d9f800ff895288 (patch)
tree2e81d7e975eedbfb0e5192057a615d585ba37391 /src/main/java/at
parentcc7f4e3ebd476320d0f8750432c0de2e58588272 (diff)
downloadskyhanni-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/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt7
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")
}