diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-07 01:24:09 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-07 01:24:09 +0100 |
commit | c9a02bb902e177e28cb03ed96c208ab99a39799d (patch) | |
tree | eeb4c0da7a6af281982bfa477de6f87e5ebc33dd /src/main/java | |
parent | f1af1a44c66733cca564b5fbad32fa4c9de01bd4 (diff) | |
download | skyhanni-c9a02bb902e177e28cb03ed96c208ab99a39799d.tar.gz skyhanni-c9a02bb902e177e28cb03ed96c208ab99a39799d.tar.bz2 skyhanni-c9a02bb902e177e28cb03ed96c208ab99a39799d.zip |
funny code duplication
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt | 7 |
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) } |