aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt
index aff6a5ad5..f9a1ea4e9 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt
@@ -104,8 +104,12 @@ class SoopyGuessBurrow {
distance2 = (Math.E / slope) - firstParticlePoint?.distance(pos)!!
if (distance2!! > 1000) {
+ LorenzUtils.debug("Soopy distance2 is $distance2")
distance2 = null
guessPoint = null
+
+ // workaround: returning if the distance is too big
+ return
}
val lineDist = lastParticlePoint2?.distance(particlePoint!!)!!