aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-19 15:22:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-19 15:22:56 +0100
commit1aa908bfe97a057b3fba26e3052ef96cc451253c (patch)
treeebc4b6878ec2388316fd0e3db09e593521847ce1 /src/main/java/at/hannibal2/skyhanni/features/garden
parentc5affe08dafdd45c38ae4b8dcdc1087a624e1b38 (diff)
downloadskyhanni-1aa908bfe97a057b3fba26e3052ef96cc451253c.tar.gz
skyhanni-1aa908bfe97a057b3fba26e3052ef96cc451253c.tar.bz2
skyhanni-1aa908bfe97a057b3fba26e3052ef96cc451253c.zip
Added support to always show jacob farming contest
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt6
1 files changed, 4 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 dbf5ff5c8..ec50cc911 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
@@ -144,7 +144,8 @@ class GardenNextJacobContest {
}
val nextContest =
- contests.filter { it.value.endTime > System.currentTimeMillis() }.toSortedMap().firstNotNullOfOrNull { it.value }
+ contests.filter { it.value.endTime > System.currentTimeMillis() }.toSortedMap()
+ .firstNotNullOfOrNull { it.value }
if (nextContest == null) {
if (contests.size == maxContestsPerYear) {
list.add("§cNew SkyBlock Year! Open calendar again!")
@@ -193,5 +194,6 @@ class GardenNextJacobContest {
config.nextJacobContestPos.renderSingleLineWithItems(display)
}
- private fun isEnabled() = GardenAPI.inGarden() && config.nextJacobContestDisplay
+ private fun isEnabled() = LorenzUtils.inSkyBlock && config.nextJacobContestDisplay
+ && (GardenAPI.inGarden() || config.nextJacobContestEverywhere)
} \ No newline at end of file