aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 01:15:47 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 01:15:47 +0200
commit3852e41d7e725d7aa23eb96c2c664746f09c0d0f (patch)
treedde838a70ec5fb588e01514d85fbe36a78a13580 /src
parente14fc195ddf38c8803d0bc42b06146afb71046c9 (diff)
downloadskyhanni-3852e41d7e725d7aa23eb96c2c664746f09c0d0f.tar.gz
skyhanni-3852e41d7e725d7aa23eb96c2c664746f09c0d0f.tar.bz2
skyhanni-3852e41d7e725d7aa23eb96c2c664746f09c0d0f.zip
Fixed king talisman helper showing wrong order.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
index 1d8f62d4f..b52fb85f0 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
@@ -123,9 +123,9 @@ class KingTalismanHelper {
val oneSbDay = 1000 * 60 * 20
val oneCircleTime = oneSbDay * kingCircles.size
val kingTime = mutableMapOf<String, Long>()
- for ((index, king) in kingCircles.reversed().withIndex()) {
+ for ((index, king) in kingCircles.withIndex()) {
- val startTime = SkyBlockTime(day = index + 1)
+ val startTime = SkyBlockTime(day = index + 2 - kingCircles.size)
var timeNext = startTime.toMillis()
while (timeNext < System.currentTimeMillis()) {
timeNext += oneCircleTime