From e284e99caeb7f11524f2501bc3a7515d49caee26 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 9 Jun 2023 22:42:21 +0200 Subject: Warning when BPS in jacob contest ff needed display is below 1 Not saving BPS if its below 1 --- .../skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt | 4 ++++ .../at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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) + } } } } -- cgit