aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-18 15:18:22 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-18 15:18:22 +0100
commit8e57a5b1a7ea98a086fae0883e42cd34558b0a58 (patch)
treed017f7889107aeef74851626253f545b14c4880a /src/main/java/at/hannibal2
parent6536f1307c232ad57f96e83f4371a47d6b3fff89 (diff)
downloadskyhanni-8e57a5b1a7ea98a086fae0883e42cd34558b0a58.tar.gz
skyhanni-8e57a5b1a7ea98a086fae0883e42cd34558b0a58.tar.bz2
skyhanni-8e57a5b1a7ea98a086fae0883e42cd34558b0a58.zip
Fixed NPE.
Diffstat (limited to 'src/main/java/at/hannibal2')
-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