From c71e6bd9158777c6060a56fd8dcb6310d0f39afe Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Fri, 29 Mar 2024 15:08:17 +0100 Subject: Fix: Pest Tracker Waypoint Color (#1309) --- .../hannibal2/skyhanni/features/garden/pests/PestParticleWaypoint.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') 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 -- cgit