From f43775c7e097cdbc5ec2a63fb2edfc231922eefa Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 23 Mar 2024 06:56:27 +0100 Subject: Fix: Lane Switch again (#1241) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 -- cgit