aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-23 17:20:33 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-23 17:20:33 +0200
commite4821befd023da38f8a054773e38b3f9a6f28210 (patch)
tree5ad0cc4f1783823e62e48165c40161e49a7d0c07 /src/main/java/at/hannibal2/skyhanni/features/garden
parent9a3620ea19f08104cc97560bb16feb2092b85847 (diff)
downloadskyhanni-e4821befd023da38f8a054773e38b3f9a6f28210.tar.gz
skyhanni-e4821befd023da38f8a054773e38b3f9a6f28210.tar.bz2
skyhanni-e4821befd023da38f8a054773e38b3f9a6f28210.zip
replacing round to roundTo in LorenzVec
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestParticleWaypoint.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestParticleWaypoint.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestParticleWaypoint.kt
index 23ead6f91..d07e55816 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestParticleWaypoint.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestParticleWaypoint.kt
@@ -86,7 +86,7 @@ object PestParticleWaypoint {
val yellow = LorenzVec(0.8, 0.8, 0.0)
val redPest = LorenzVec(0.8, 0.4, 0.0)
val redPlot = LorenzVec(0.8, 0.0, 0.0)
- isPointingToPest = when (event.offset.round(5)) {
+ isPointingToPest = when (event.offset.roundTo(5)) {
redPlot -> false
redPest, yellow, darkYellow -> true
else -> return
@@ -150,7 +150,7 @@ object PestParticleWaypoint {
waypoint,
color,
3,
- false
+ false,
)
}