From edd6c15ef2bb9ec8d0ed47a1a5dacbe72f78c053 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 19 Mar 2023 19:52:29 +0100 Subject: Fixed NPE in the end --- .../java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt index 0105064d2..996f46ee4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt @@ -85,7 +85,7 @@ class EndermanSlayerBeacon { val packet = event.packet if (packet is S23PacketBlockChange) { val location = packet.blockPosition.toLorenzVec() - if (packet.blockState.block == Blocks.beacon) { + if (packet.blockState?.block == Blocks.beacon) { val armorStand = flyingBeacons.find { location.distance(it.getLorenzVec()) < 3 } if (armorStand != null) { flyingBeacons.remove(armorStand) -- cgit