aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
index 42308466b..671f34606 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
@@ -28,7 +28,7 @@ class MovementSpeedDisplay {
}
private fun checkSpeed() {
- if (!isEnabled()) return
+ if (!LorenzUtils.onHypixel) return
speedInLastTick = with(Minecraft.getMinecraft().thePlayer) {
val oldPos = LorenzVec(prevPosX, prevPosY, prevPosZ)
@@ -37,7 +37,9 @@ class MovementSpeedDisplay {
// Distance from previous tick, multiplied by TPS
oldPos.distance(newPos) * 20
}
- display = "Movement Speed: ${speedInLastTick.round(2)}"
+ if (isEnabled()) {
+ display = "Movement Speed: ${speedInLastTick.round(2)}"
+ }
}
@SubscribeEvent