From bacc6a3a845311e0e079957423cede7544d298b8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:29:01 +0200 Subject: Fix: NPE in CorpseLocator (#2268) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/mining/glacitemineshaft/CorpseLocator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) -- cgit