aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt2
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)