aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-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") }
}
}