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/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 d01d80325..49d97276b 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,8 +86,6 @@ class PestParticleWaypoint {
else -> return
}
- val (r, g, b) = event.offset.toDoubleArray().map { it.toFloat() }
- color = Color(r, g, b)
val location = event.location
if (config.hideParticles) event.cancel()
@@ -97,6 +95,8 @@ class PestParticleWaypoint {
if (firstParticlePoint == null) {
if (playerLocation().distance(location) > 5) return
firstParticlePoint = location
+ val (r, g, b) = event.offset.toDoubleArray().map { it.toFloat() }
+ color = Color(r, g, b)
} else if (secondParticlePoint == null) {
secondParticlePoint = location
lastParticlePoint = location