diff options
author | ReyMaratov <musterjohn6@gmail.com> | 2023-09-07 23:36:01 +0200 |
---|---|---|
committer | ReyMaratov <musterjohn6@gmail.com> | 2023-09-07 23:36:01 +0200 |
commit | e38cdf57f48cfbe4563a54505465918fa64a157a (patch) | |
tree | af74a84042d0a35f98ff96b4e21c776bae6f62d8 /src | |
parent | a378688a554ecfed7fb497557392eb3e40850332 (diff) | |
download | skyhanni-e38cdf57f48cfbe4563a54505465918fa64a157a.tar.gz skyhanni-e38cdf57f48cfbe4563a54505465918fa64a157a.tar.bz2 skyhanni-e38cdf57f48cfbe4563a54505465918fa64a157a.zip |
changed the way the bps status is displayed, hope it looks good now :)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt index b75250777..e885ad7a5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt @@ -23,6 +23,7 @@ class JacobContestTimeNeeded { private val config get() = SkyHanniMod.feature.garden private var display = emptyList<List<Any>>() private var currentBracket = ContestBracket.GOLD + private var lowBPSWarning = "" @SubscribeEvent(priority = EventPriority.LOW) fun onLateInventoryOpen(event: InventoryUpdatedEvent) { @@ -70,12 +71,15 @@ class JacobContestTimeNeeded { if (blocksPerSecond == null) { marking += "§0§l !" //hoping this never shows blocksPerSecond = 19.9 + lowBPSWarning = "§cYour Blocks/second is too low, showing 19.9 Blocks/second instead!" } else { if (blocksPerSecond < 15.0) { marking += "§4§l !" blocksPerSecond = 19.9 + lowBPSWarning = "§cYour Blocks/second is too low, showing 19.9 Blocks/second instead!" } else { marking += " " + lowBPSWarning = "§aYour Blocks/second is good :)" } } if (timeInMinutes < 20) { @@ -105,7 +109,7 @@ class JacobContestTimeNeeded { add("§7Latest FF: §e${(latestFF).addSeparators()}") val bps = crop.getLatestBlocksPerSecond()?.round(1) ?: 0 add("§7Blocks/Second: §e${bps.addSeparators()}") - + add(lowBPSWarning) }) } @@ -126,7 +130,6 @@ class JacobContestTimeNeeded { val text = map[crop]!! add(listOf(crop.icon, text)) } - addAsSingletonList("§eA§4§l ! §eindicates too low Blocks/Second. Calculations will use 19.9 instead.") } } |