Skip to content

Commit

Permalink
Fixed showing fishing displays in dungeons
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Oct 8, 2024
1 parent 92b1110 commit 0149084
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent
import at.hannibal2.skyhanni.events.RepositoryReloadEvent
import at.hannibal2.skyhanni.events.entity.EntityEnterWorldEvent
import at.hannibal2.skyhanni.features.dungeon.DungeonAPI
import at.hannibal2.skyhanni.features.fishing.trophy.TrophyFishManager
import at.hannibal2.skyhanni.features.fishing.trophy.TrophyFishManager.getFilletValue
import at.hannibal2.skyhanni.features.fishing.trophy.TrophyRarity
Expand Down Expand Up @@ -137,7 +138,8 @@ object FishingAPI {
return info?.getFilletValue(rarity) ?: 0
}

fun isFishing(checkRodInHand: Boolean = true) = IsFishingDetection.isFishing || (checkRodInHand && holdingRod)
fun isFishing(checkRodInHand: Boolean = true) =
(IsFishingDetection.isFishing || (checkRodInHand && holdingRod)) && !DungeonAPI.inDungeon()

fun seaCreatureCount(entity: EntityArmorStand): Int {
val name = entity.name
Expand Down

0 comments on commit 0149084

Please sign in to comment.