From 41df011a8b1892ac69a8903949fddc1b6bcc913c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:45:23 +0100 Subject: removed unnecessary stuff --- .../at/hannibal2/skyhanni/data/repo/RepoManager.kt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt index 8c12444ac..4e8b95080 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt @@ -184,13 +184,16 @@ class RepoManager(private val configLocation: File) { } event.addData { - if (successfulConstants.isNotEmpty()) add("Successful Constants (${successfulConstants.size}):") - for (constant in successfulConstants) { - add(" - $constant") - } + add("Successful Constants (${successfulConstants.size}):") + add("Unsuccessful Constants (${unsuccessfulConstants.size}):") - for (constant in unsuccessfulConstants) { + + for ((i, constant) in unsuccessfulConstants.withIndex()) { add(" - $constant") + if (i == 5) { + add("...") + break + } } } } @@ -214,7 +217,10 @@ class RepoManager(private val configLocation: File) { LorenzUtils.chat("Repo working fine!", prefixColor = "§a") return } - if (successfulConstants.isNotEmpty()) LorenzUtils.chat("Successful Constants §7(${successfulConstants.size}):", prefixColor = "§a") + if (successfulConstants.isNotEmpty()) LorenzUtils.chat( + "Successful Constants §7(${successfulConstants.size}):", + prefixColor = "§a" + ) for (constant in successfulConstants) { LorenzUtils.chat(" §a- §7$constant") } -- cgit