[fix] Fix changing AutoWalk mode when disabled starts pathing

This commit is contained in:
Xiaro 2020-11-29 15:09:20 -05:00
parent e5f64c4a50
commit 2cfb55f495
No known key found for this signature in database
GPG Key ID: 996D265D6E155377
1 changed files with 2 additions and 2 deletions

View File

@ -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 {