From a87bc832101e7e1c6240aa92cf65c798db7a7864 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 10 Apr 2023 21:15:02 +0200 Subject: Fixed next jacob contest display showing random player names sometimes --- .../at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java') 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() + 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") -- cgit