aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt7
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.")
}
}