diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-24 03:00:20 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-24 03:00:20 +0100 |
commit | a7d5b9d03f39c9c816dfc87ddb8a8ef20aae7d44 (patch) | |
tree | cd86f8fb34f90d1648ad66931ad36013ce857db6 /src | |
parent | 26b2c0d7268598d1d21d1a9f2dd860497d7e1297 (diff) | |
download | skyhanni-a7d5b9d03f39c9c816dfc87ddb8a8ef20aae7d44.tar.gz skyhanni-a7d5b9d03f39c9c816dfc87ddb8a8ef20aae7d44.tar.bz2 skyhanni-a7d5b9d03f39c9c816dfc87ddb8a8ef20aae7d44.zip |
Fixed odger waypoint crash in dungeon.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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") } } } |