From c9a02bb902e177e28cb03ed96c208ab99a39799d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 7 Mar 2024 01:24:09 +0100 Subject: funny code duplication --- .../at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/main/java') 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) } -- cgit