From 2cfb55f4952eda8c2443292b74166d54e610af1e Mon Sep 17 00:00:00 2001 From: Xiaro <62033805+Xiaro@users.noreply.github.com> Date: Sun, 29 Nov 2020 15:09:20 -0500 Subject: [PATCH] [fix] Fix changing AutoWalk mode when disabled starts pathing --- .../me/zeroeightsix/kami/module/modules/movement/AutoWalk.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/movement/AutoWalk.kt b/src/main/java/me/zeroeightsix/kami/module/modules/movement/AutoWalk.kt index 157cc56af..db9aff337 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/movement/AutoWalk.kt +++ b/src/main/java/me/zeroeightsix/kami/module/modules/movement/AutoWalk.kt @@ -36,7 +36,7 @@ object AutoWalk : Module() { return isEnabled && (mode.value != AutoWalkMode.BARITONE || BaritoneUtils.isActive) } - override fun getHudInfo(): String? { + override fun getHudInfo(): String { return if (BaritoneUtils.isActive) { direction.displayName } else { @@ -103,7 +103,7 @@ object AutoWalk : Module() { init { mode.settingListener = Setting.SettingListeners { - if (mc.player == null) return@SettingListeners + if (mc.player == null || isDisabled) return@SettingListeners if (mode.value == AutoWalkMode.BARITONE) { if (!checkBaritoneElytra()) startPathing() } else {