diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 19:52:29 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 19:52:29 +0100 |
commit | edd6c15ef2bb9ec8d0ed47a1a5dacbe72f78c053 (patch) | |
tree | 3ae636a515f284b1f8fa3a0bc49baa35a060b4de /src/main/java/at/hannibal2/skyhanni | |
parent | 07ef4c86d07fa7105f9c20668264f16145fb074a (diff) | |
download | skyhanni-edd6c15ef2bb9ec8d0ed47a1a5dacbe72f78c053.tar.gz skyhanni-edd6c15ef2bb9ec8d0ed47a1a5dacbe72f78c053.tar.bz2 skyhanni-edd6c15ef2bb9ec8d0ed47a1a5dacbe72f78c053.zip |
Fixed NPE in the end
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |