From a7d5b9d03f39c9c816dfc87ddb8a8ef20aae7d44 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 24 Jan 2023 03:00:20 +0100 Subject: Fixed odger waypoint crash in dungeon. --- src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt index 4af5e0fbe..139b131e4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt @@ -36,7 +36,7 @@ class OdgerWaypoint { trophyFishInInv = Minecraft.getMinecraft().thePlayer.inventoryContainer.inventorySlots .mapNotNull { it?.stack } .map { it.getLore() } - .any { it.last().endsWith("TROPHY FISH") } + .any { it.isNotEmpty() && it.last().endsWith("TROPHY FISH") } } } -- cgit