aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-25 15:34:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-25 15:34:56 +0100
commit3d8f954fc90b91e95a3d771bbe86ba282a614e0b (patch)
tree13011ce4ec47611ddc1610603c28b646c76a4539
parentcda98f91f58002ed2b757da98682f308d505b8a0 (diff)
downloadskyhanni-3d8f954fc90b91e95a3d771bbe86ba282a614e0b.tar.gz
skyhanni-3d8f954fc90b91e95a3d771bbe86ba282a614e0b.tar.bz2
skyhanni-3d8f954fc90b91e95a3d771bbe86ba282a614e0b.zip
Fixed farming contest warn during active contest.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
index 689c5d076..f6ece600b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
@@ -329,7 +329,8 @@ object GardenNextJacobContest {
val boostedCrop = calculateBoostedCrop(nextContest)
- if (duration < contestDuration) {
+ val activeContest = duration < contestDuration
+ if (activeContest) {
list.add("§aActive: ")
} else {
list.add("§eNext: ")
@@ -340,7 +341,9 @@ object GardenNextJacobContest {
list.addCropIcon(crop, highlight = (crop == boostedCrop))
nextContestCrops.add(crop)
}
- warn(duration, nextContest.crops, boostedCrop)
+ if (!activeContest) {
+ warn(duration, nextContest.crops, boostedCrop)
+ }
val format = duration.format()
list.add("§7(§b$format§7)")