aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-24 17:47:00 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-24 17:47:00 +0100
commit079d63780bad6334e402300b51f4fb32319fec2c (patch)
treea3297d9a186362276585e70b7e806d0f90618869 /src/main/java/at/hannibal2
parent3710917b069a13699cedca5eb35b79db0f53e2a4 (diff)
downloadskyhanni-079d63780bad6334e402300b51f4fb32319fec2c.tar.gz
skyhanni-079d63780bad6334e402300b51f4fb32319fec2c.tar.bz2
skyhanni-079d63780bad6334e402300b51f4fb32319fec2c.zip
Fixed /shdebug without parameter showing everything instead of only important data.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/DebugDataCollectEvent.kt6
1 files changed, 3 insertions, 3 deletions
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<String>, private val search: String?) : LorenzEvent() {
+class DebugDataCollectEvent(private val list: MutableList<String>, private val search: String) : LorenzEvent() {
var empty = true
private var currentTitle = ""
@@ -35,8 +35,8 @@ class DebugDataCollectEvent(private val list: MutableList<String>, private val s
}
private fun writeData(text: List<String>) {
- 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