From f7b63675697da08923c319ddee2c1d1a257dbe12 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 12 Jun 2023 13:55:12 +0200 Subject: Updating movement speed display 4 times per second --- .../java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt index fb2cff7fc..d6d73c3ce 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt @@ -16,7 +16,7 @@ class MovementSpeedDisplay { private var display = "" init { - fixedRateTimer(name = "skyhanni-movement-speed-display", period = 1_000, initialDelay = 1_000) { + fixedRateTimer(name = "skyhanni-movement-speed-display", period = 250, initialDelay = 1_000) { checkSpeed() } } @@ -31,7 +31,7 @@ class MovementSpeedDisplay { } lastLocation?.let { - val distance = it.distance(currentLocation) + val distance = it.distance(currentLocation) * 4 display = "Movement Speed: ${distance.round(2)}" lastLocation = currentLocation } -- cgit