diff options
author | alexia <me@alexia.lol> | 2023-12-17 19:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 19:28:00 +0100 |
commit | 03b8008e7494914e9eb12c65edecea7566d6e099 (patch) | |
tree | 97d15a0e6a590dd9ba104dcc1fa4f79233ec3bc7 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 19f44b1c03bfbf8491c237c9527ecc45afc0b138 (diff) | |
download | skyhanni-03b8008e7494914e9eb12c65edecea7566d6e099.tar.gz skyhanni-03b8008e7494914e9eb12c65edecea7566d6e099.tar.bz2 skyhanni-03b8008e7494914e9eb12c65edecea7566d6e099.zip |
Fix next visitor time while farming (#812)
Fixed next visitor time while farming. #812
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt index b1a8697e5..4c5408573 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt @@ -162,8 +162,7 @@ class GardenVisitorTimer { } val extraSpeed = if (diff in 2.seconds..10.seconds) { - val factor = diff.inWholeSeconds.toDouble() - val duration = millis / factor + val duration = millis / 3 "§7/§$formatColor" + duration.format() } else "" if (config.newVisitorPing && millis < 10.seconds) { |