Remove unnecessary condition in player locomotion and add test for sprint planar speed preservation while jumping

This commit is contained in:
2026-04-11 19:30:54 +02:00
parent 95905bd897
commit 23b875ff35
2 changed files with 100 additions and 1 deletions

View File

@@ -286,7 +286,6 @@ export function stepPlayerLocomotion(
options.movement.capabilities.sprint &&
sprintPressed &&
!crouched &&
currentlyGrounded &&
!currentVolumeState.inWater;
const requestedPlanarSpeed =
options.movement.moveSpeed *