From e414a7b8b0582888aa03d52955e74acab9b7fedf Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 5 May 2023 00:48:19 +0200 Subject: Maybe fixed crashes with soopy guess sound events --- .../at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/at') 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!!)!! -- cgit