diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 3 |
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") |