aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-24 03:00:20 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-24 03:00:20 +0100
commitd7703a4467fc29716600324d065fa9eb696f7747 (patch)
treecd86f8fb34f90d1648ad66931ad36013ce857db6
parentdf710284922082a6f0250d0b6a7b2de435a67c8f (diff)
downloadSkyHanni-d7703a4467fc29716600324d065fa9eb696f7747.tar.gz
SkyHanni-d7703a4467fc29716600324d065fa9eb696f7747.tar.bz2
SkyHanni-d7703a4467fc29716600324d065fa9eb696f7747.zip
Fixed odger waypoint crash in dungeon.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/OdgerWaypoint.kt2
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") }
}
}