Skip to content

Commit

Permalink
fix(legacy): noslow consume & sprint working when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
EclipsesDev committed Dec 20, 2024
1 parent f406af2 commit 4e43a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ object NoSlow : Module("NoSlow", Category.MOVEMENT, gameDetecting = false, hideM
return@handler

if (isUsingItem || shouldSwap) {
if (heldItem.item !is ItemSword && !consumeFoodOnly && heldItem.item is ItemFood ||
if (heldItem.item is ItemSword || !consumeFoodOnly && heldItem.item is ItemFood ||
!consumeDrinkOnly && (heldItem.item is ItemPotion || heldItem.item is ItemBucketMilk)
) {
return@handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object Sprint : Module("Sprint", Category.MOVEMENT, gameDetecting = false, hideM
return
}

if ((onlyOnSprintPress || !handleEvents()) && !player.isSprinting && !mc.gameSettings.keyBindSprint.isKeyDown && !SuperKnockback.startSprint() && !isSprinting)
if (!handleEvents() || onlyOnSprintPress && !player.isSprinting && !mc.gameSettings.keyBindSprint.isKeyDown && !SuperKnockback.startSprint() && !isSprinting)
return

if (Scaffold.handleEvents()) {
Expand Down

0 comments on commit 4e43a2e

Please sign in to comment.