aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-09 22:42:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-09 22:42:21 +0200
commite284e99caeb7f11524f2501bc3a7515d49caee26 (patch)
tree6512758aa7b4748a0b105959513dfefb8b9c1acd /src/main/java/at/hannibal2/skyhanni/features
parentc5ef02ccbf91a823d01ba7d36c87f740b89271d6 (diff)
downloadskyhanni-e284e99caeb7f11524f2501bc3a7515d49caee26.tar.gz
skyhanni-e284e99caeb7f11524f2501bc3a7515d49caee26.tar.bz2
skyhanni-e284e99caeb7f11524f2501bc3a7515d49caee26.zip
Warning when BPS in jacob contest ff needed display is below 1
Not saving BPS if its below 1
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt
index cd8295ebe..25cd81252 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt
@@ -77,6 +77,10 @@ class JacobContestFFNeededDisplay {
addAsSingletonList("§cassuming 20.")
} else {
add(listOf("§7Using latest ", crop.icon, "§7blocks/second: §e${blocksPerSecond.round(2)}"))
+ if (blocksPerSecond < 1) {
+ addAsSingletonList("§cLow blocks per second!")
+ addAsSingletonList("§cFarm this crop for couple more seconds!")
+ }
}
addAsSingletonList("")
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt
index f33a03504..feb323ecf 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt
@@ -90,7 +90,9 @@ object GardenCropSpeed {
blocksSpeedList.dropLast(1).average()
} else 0.0
GardenAPI.getCurrentlyFarmedCrop()?.let {
- latestBlocksPerSecond?.put(it, averageBlocksPerSecond)
+ if (averageBlocksPerSecond > 1) {
+ latestBlocksPerSecond?.put(it, averageBlocksPerSecond)
+ }
}
}
}