aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
index aa2920742..1138af3b8 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
@@ -55,17 +55,12 @@ class GeyserFishing {
@SubscribeEvent
fun onRenderWorld(event: LorenzRenderWorldEvent) {
if (!config.drawBox) return
- if (!IslandType.CRIMSON_ISLE.isInIsland()) return
- if (config.onlyWithRod && !FishingAPI.holdingLavaRod) return
+ val geyserBox = geyserBox ?: return
val geyser = geyser ?: return
if (geyser.distanceToPlayerIgnoreY() > 96) return
-
- if (!config.drawBox) return
if (!IslandType.CRIMSON_ISLE.isInIsland()) return
if (config.onlyWithRod && !FishingAPI.holdingLavaRod) return
- if (geyser.distanceToPlayerIgnoreY() > 96) return
- val geyserBox = geyserBox ?: return
val color = Color(SpecialColour.specialToChromaRGB(config.boxColor), true)
event.drawFilledBoundingBox_nea(geyserBox, color)
}