aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
index ecb3c541d..6483f44cc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -144,7 +144,12 @@ class GardenVisitorFeatures {
list.add(" §7- $displayName")
if (config.visitorItemPreview) {
- val items = GardenVisitorColorNames.visitorItems[visitor.removeColor()]!!
+ val items = GardenVisitorColorNames.visitorItems[visitor.removeColor()]
+ if (items == null) {
+ LorenzUtils.debug("Visitor '$visitor' has no items in repo!")
+ list.add(" §7(§c?§7)")
+ continue
+ }
list.add(" ")
if (items.isEmpty()) {
list.add("§7(§fAny§7)")