diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-05 00:48:19 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-05 00:48:19 +0200 |
commit | e414a7b8b0582888aa03d52955e74acab9b7fedf (patch) | |
tree | 3d987c873cfffa4ac3ce2cc1c42aae42b6dc65f4 /src/main/java/at | |
parent | 4ba9cd16a9ef2f7f37454d81248cd96d7846c8aa (diff) | |
download | skyhanni-e414a7b8b0582888aa03d52955e74acab9b7fedf.tar.gz skyhanni-e414a7b8b0582888aa03d52955e74acab9b7fedf.tar.bz2 skyhanni-e414a7b8b0582888aa03d52955e74acab9b7fedf.zip |
Maybe fixed crashes with soopy guess sound events
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt | 4 |
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!!)!! |