diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-18 23:01:18 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-18 23:01:18 +0100 |
commit | ce37665493a0634b6cc29c66f6ccbac7674b0249 (patch) | |
tree | 7dd9506933834c3574efee78b50232e5b2f01613 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | cfa9dff0c90be83ab219db10ef08abb8c6aabca0 (diff) | |
download | skyhanni-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.kt | 5 |
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) { |