From ce5b48e7998157e71e3151a9d3289449619499e5 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(-) 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