aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
index e916d01e1..9a9cc2adc 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
@@ -1068,7 +1068,9 @@ interface Renderable {
val map = content.filter { it.value?.contains(textBox, ignoreCase = true) ?: true }
val set = map.keys.toMutableSet()
if (map.filter { it.value != null }.isEmpty()) {
- set.add(string("§cNo search results!"))
+ if (textBox.isNotEmpty()) {
+ set.add(string("§cNo search results!"))
+ }
}
return set
}