aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-18 23:01:18 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-18 23:01:18 +0100
commitce37665493a0634b6cc29c66f6ccbac7674b0249 (patch)
tree7dd9506933834c3574efee78b50232e5b2f01613 /src/main/java/at/hannibal2/skyhanni/features/misc
parentcfa9dff0c90be83ab219db10ef08abb8c6aabca0 (diff)
downloadskyhanni-ce37665493a0634b6cc29c66f6ccbac7674b0249.tar.gz
skyhanni-ce37665493a0634b6cc29c66f6ccbac7674b0249.tar.bz2
skyhanni-ce37665493a0634b6cc29c66f6ccbac7674b0249.zip
Used LorenzUtils.inSkyBlock everywhere.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/TpsCounter.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/TpsCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/TpsCounter.kt
index 8fed472a0..3b9de73de 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/TpsCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/TpsCounter.kt
@@ -1,7 +1,6 @@
package at.hannibal2.skyhanni.features.misc
import at.hannibal2.skyhanni.SkyHanniMod
-import at.hannibal2.skyhanni.data.HyPixelData
import at.hannibal2.skyhanni.events.HypixelTickEvent
import at.hannibal2.skyhanni.events.PacketEvent
import at.hannibal2.skyhanni.utils.LorenzUtils
@@ -28,7 +27,7 @@ class TpsCounter {
init {
fixedRateTimer(name = "skyhanni-tps-counter-seconds", period = 1000L) {
- if (!HyPixelData.skyBlock) return@fixedRateTimer
+ if (!LorenzUtils.inSkyBlock) return@fixedRateTimer
if (!SkyHanniMod.feature.misc.tpsDisplayEnabled) return@fixedRateTimer
if (packetsFromLastSecond == 0) return@fixedRateTimer
@@ -58,7 +57,7 @@ class TpsCounter {
}
}
fixedRateTimer(name = "skyhanni-tps-counter-ticks", period = 50L) {
- if (!HyPixelData.skyBlock) return@fixedRateTimer
+ if (!LorenzUtils.inSkyBlock) return@fixedRateTimer
if (!SkyHanniMod.feature.misc.tpsDisplayEnabled) return@fixedRateTimer
if (hasPacketReceived) {