aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-03-29 15:08:17 +0100
committerGitHub <noreply@github.com>2024-03-29 15:08:17 +0100
commitc71e6bd9158777c6060a56fd8dcb6310d0f39afe (patch)
tree5bb3e9ca19725e1a329afeaca58b75ac14185c71 /src
parent5ebc246afeff794acb1c1920e6e86552fa0c73e3 (diff)
downloadskyhanni-c71e6bd9158777c6060a56fd8dcb6310d0f39afe.tar.gz
skyhanni-c71e6bd9158777c6060a56fd8dcb6310d0f39afe.tar.bz2
skyhanni-c71e6bd9158777c6060a56fd8dcb6310d0f39afe.zip
Fix: Pest Tracker Waypoint Color (#1309)
Diffstat (limited to 'src')
-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