diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-03-25 00:46:00 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 14:46:00 +0100 |
commit | d6d899e8929e8caeb40e2099d13dd3425129d5e8 (patch) | |
tree | c7e9bdd74f4724f567863aff6ab9e7ce721d89c2 /src/main/java/at/hannibal2/skyhanni/features/mining | |
parent | 4300af278a7a6f5124c9164998d132774a9f0a9c (diff) | |
download | skyhanni-d6d899e8929e8caeb40e2099d13dd3425129d5e8.tar.gz skyhanni-d6d899e8929e8caeb40e2099d13dd3425129d5e8.tar.bz2 skyhanni-d6d899e8929e8caeb40e2099d13dd3425129d5e8.zip |
Fix: Serverid error (#1262)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/mining')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventTracker.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventTracker.kt index 4d4b59b6f..e4d8e31a3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/eventtracker/MiningEventTracker.kt @@ -47,7 +47,6 @@ class MiningEventTracker { private val defaultCooldown = 1.minutes - private var lastWorldSwitch = SimpleTimeMark.farPast() private var eventEndTime = SimpleTimeMark.farPast() private var lastSentEvent: MiningEventType? = null @@ -55,7 +54,6 @@ class MiningEventTracker { @SubscribeEvent fun onWorldChange(event: LorenzWorldChangeEvent) { - lastWorldSwitch = SimpleTimeMark.farPast() eventEndTime = SimpleTimeMark.farPast() lastSentEvent = null } @@ -63,7 +61,7 @@ class MiningEventTracker { @SubscribeEvent fun onBossbarChange(event: BossbarUpdateEvent) { if (!LorenzUtils.inAdvancedMiningIsland()) return - if (lastWorldSwitch.passedSince() < 5.seconds) return + if (LorenzUtils.lastWorldSwitch.passedSince() < 5.seconds) return if (!eventEndTime.isInPast()) { return } |