From 079d63780bad6334e402300b51f4fb32319fec2c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:47:00 +0100 Subject: Fixed /shdebug without parameter showing everything instead of only important data. --- src/main/java/at/hannibal2/skyhanni/events/DebugDataCollectEvent.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/events') diff --git a/src/main/java/at/hannibal2/skyhanni/events/DebugDataCollectEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DebugDataCollectEvent.kt index eb8dd5bfc..0162e72e4 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/DebugDataCollectEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/DebugDataCollectEvent.kt @@ -2,7 +2,7 @@ package at.hannibal2.skyhanni.events import at.hannibal2.skyhanni.utils.StringUtils.equalsIgnoreColor -class DebugDataCollectEvent(private val list: MutableList, private val search: String?) : LorenzEvent() { +class DebugDataCollectEvent(private val list: MutableList, private val search: String) : LorenzEvent() { var empty = true private var currentTitle = "" @@ -35,8 +35,8 @@ class DebugDataCollectEvent(private val list: MutableList, private val s } private fun writeData(text: List) { - if (irrelevant && search == null) return - search?.let { + if (irrelevant && search.isEmpty()) return + if (search.isNotEmpty()) { if (!search.equalsIgnoreColor("all")) { if (!currentTitle.contains(search, ignoreCase = true)) { return -- cgit