feat: remove sprinting

This commit is contained in:
str1k3r committed 2026-09-26 15:14:59 -04:00
1 parent 5b198d7b31
commit bdfe5350cd
14 files changed
+18 -196

No files matched your search

+1 -1
View File
@@ -3271,7 +3271,7 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
// Also disable repeat when the player is sleeping to stop the waking up right after using the bed
bool firstClick = ( player->lastClickTick[1] == 0 );
bool autoRepeat = ticks - player->lastClickTick[1] >= timer->ticksPerSecond / 4;
if ( player->isRiding() || player->isSprinting() || player->isSleeping() ) autoRepeat = false;
if ( player->isRiding() || player->isSleeping() ) autoRepeat = false;
if (InputManager.ButtonDown(iPad, MINECRAFT_ACTION_USE) )
{
// If the player has just exited a bed, then delay the time before a repeat key is allowed without releasing