diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-07-30 10:29:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 10:29:01 +0200 |
commit | bacc6a3a845311e0e079957423cede7544d298b8 (patch) | |
tree | 9349eae1d553da364c3daf02c60ce3a04918996f /src | |
parent | 14adb676724cac2bdd900cb878dcc2a5a2d2d739 (diff) | |
download | skyhanni-bacc6a3a845311e0e079957423cede7544d298b8.tar.gz skyhanni-bacc6a3a845311e0e079957423cede7544d298b8.tar.bz2 skyhanni-bacc6a3a845311e0e079957423cede7544d298b8.zip |
Fix: NPE in CorpseLocator (#2268)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt index 7a93d528d..f7fdcad4d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt @@ -48,7 +48,7 @@ object CorpseLocator { entity.showArms && entity.hasNoBasePlate() && !entity.isInvisible } .forEach { entity -> - val helmetName = entity.getCurrentArmor(3).getInternalName() + val helmetName = entity.getCurrentArmor(3)?.getInternalName() ?: return val corpseType = MineshaftWaypointType.getByHelmetOrNull(helmetName) ?: return val canSee = entity.getLorenzVec().canBeSeen(-1..3) |