From f3d5d4dcb6f9101afc69950a5d45af5dd3da10c9 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 8 Oct 2023 09:51:15 +0200 Subject: Added debug options for fishing hook display. --- .../java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing') diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt index 1ecfa75c7..cf9b6141c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt @@ -33,7 +33,7 @@ class FishingHookDisplay { @SubscribeEvent fun onTick(event: LorenzTickEvent) { if (!isEnabled()) return - if (!event.repeatSeconds(1)) return + if (!event.isMod(config.debugUpdateInterval)) return val entities = EntityUtils.getEntities() bobberLocation = entities.firstOrNull { it.angler is EntityPlayerSP }?.getLorenzVec() @@ -47,7 +47,7 @@ class FishingHookDisplay { val bobberLocation = bobberLocation ?: return val distance = entity.getLorenzVec().distance(bobberLocation) - if (distance > 0.1) return + if (distance > config.debugMaxDistance) return if (entity is EntityArmorStand) { armorStand = entity } -- cgit