aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorHiZe <super@hize.be>2024-05-31 23:21:32 +0200
committerGitHub <noreply@github.com>2024-05-31 23:21:32 +0200
commit0cc4a785d71e5026392a102c2f9a44fa4a18e271 (patch)
treead715bc063280891c59d8fe9a1ffb719c70631d7 /src/main/java
parent063135f2fca4cf7853ad4501c1b627c7dec43fd3 (diff)
downloadskyhanni-0cc4a785d71e5026392a102c2f9a44fa4a18e271.tar.gz
skyhanni-0cc4a785d71e5026392a102c2f9a44fa4a18e271.tar.bz2
skyhanni-0cc4a785d71e5026392a102c2f9a44fa4a18e271.zip
Fix: Add stranded check for trophy fish display (#1966)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishDisplay.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishDisplay.kt
index 447a7bf54..714efc7e3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/TrophyFishDisplay.kt
@@ -22,6 +22,7 @@ import at.hannibal2.skyhanni.utils.DelayedRun
import at.hannibal2.skyhanni.utils.ItemUtils.getItemRarityOrNull
import at.hannibal2.skyhanni.utils.ItemUtils.itemName
import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld
+import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
@@ -269,5 +270,5 @@ object TrophyFishDisplay {
WhenToShow.ONLY_WITH_KEYBIND -> config.keybind.isKeyHeld()
}
- fun isEnabled() = IslandType.CRIMSON_ISLE.isInIsland() && config.enabled.get()
+ fun isEnabled() = (IslandType.CRIMSON_ISLE.isInIsland() || LorenzUtils.isStrandedProfile) && config.enabled.get()
}