From 1aa908bfe97a057b3fba26e3052ef96cc451253c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 19 Mar 2023 15:22:56 +0100 Subject: Added support to always show jacob farming contest --- .../at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') 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 -- cgit