Skip to content

Commit

Permalink
fix(legacy): noslow consume & sprint working incorrectly (#4977)
Browse files Browse the repository at this point in the history
  • Loading branch information
EclipsesDev authored Dec 20, 2024
1 parent f406af2 commit 213bd10
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 213bd10

Please sign in to comment.