aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt2
1 files changed, 1 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 d2b860908..ade008853 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -194,7 +194,7 @@ class GardenVisitorFeatures {
if (packet !is C02PacketUseEntity) return
val theWorld = Minecraft.getMinecraft().theWorld
- val entity = packet.getEntityFromWorld(theWorld)
+ val entity = packet.getEntityFromWorld(theWorld) ?: return
val entityId = entity.entityId
lastClickedNpc = entityId