aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-10 21:15:02 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-10 21:15:02 +0200
commita87bc832101e7e1c6240aa92cf65c798db7a7864 (patch)
tree44d9adaa7592c34c2c01fe301fe8805a7715085a /src/main/java/at/hannibal2/skyhanni
parent029800349b1af9fa8f81bd394bbb887f36dcb19f (diff)
downloadskyhanni-a87bc832101e7e1c6240aa92cf65c798db7a7864.tar.gz
skyhanni-a87bc832101e7e1c6240aa92cf65c798db7a7864.tar.bz2
skyhanni-a87bc832101e7e1c6240aa92cf65c798db7a7864.zip
Fixed next jacob contest display showing random player names sometimes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt3
1 files changed, 3 insertions, 0 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 675b30220..e22339edd 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt
@@ -31,6 +31,7 @@ class GardenNextJacobContest {
fun onTabListUpdate(event: TabListUpdateEvent) {
var next = false
val newList = mutableListOf<String>()
+ var counter = 0
for (line in event.tabList) {
if (line == "§e§lJacob's Contest:") {
newList.add(line)
@@ -40,6 +41,8 @@ class GardenNextJacobContest {
if (next) {
if (line == "") break
newList.add(line)
+ counter++
+ if (counter == 4) break
}
}
newList.add("§cOpen calendar for")