From 8e57a5b1a7ea98a086fae0883e42cd34558b0a58 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 18 Feb 2023 15:18:22 +0100 Subject: Fixed NPE. --- .../java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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 -- cgit