aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt3
1 files changed, 2 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 d9de3b11d..2a2d9f270 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -59,7 +59,8 @@ class GardenVisitorFeatures {
if (!config.visitorNeedsDisplay && !config.visitorHighlight) return
- val visitor = visitors[npcItem.name!!]!!
+ val name = npcItem.name ?: return
+ val visitor = visitors[name]!!
visitor.entityId = lastClickedNpc
for (line in offerItem.getLore()) {
if (line == "ยง7Items Required:") continue