This commit is contained in:
2026-08-26 18:53:31 -05:00
parent 1bb3be26ec
commit d3bfe54f73
3 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ void LocalPlayer::aiStep()
#ifdef _WINDOWS64
// Keyboard sprint: Ctrl held while moving forward
if (GetXboxPad() == 0 && KMInput.IsKeyDown(VK_CONTROL) && input->ya > 0.0f &&
if (GetXboxPad() == 0 && g_KBMInput.IsKeyDown(VK_CONTROL) && input->ya > 0.0f &&
enoughFoodToSprint && !isUsingItem() && !hasEffect(MobEffect::blindness) && onGround)
{
if (!isSprinting()) setSprinting(true);