-
Bug
-
Resolution: Works As Intended
-
None
-
1.19.2, 22w42a, 22w43a, 23w05a
-
Confirmed
-
Input, Player
The bug
The Controls menu allows for sprinting and sneaking to be switched between "hold" (default) and "toggle" modes. However, the behaviour of the "hold" mode is not alike for each mode; sneaking will only last until the held key is released, whereas sprinting will persist past that point.
How to reproduce
- Have both "Sprint" and "Sneak" set to "Hold" in Options > Controls
- Start walking
- While in the middle of walking, hold down the assigned sneaking key
- Note how the player's movement changes for the duration the key is held for
- Release the assigned sneaking key
- Note how the player's movement changes after the key is released while the player continues to move
- Repeat steps 2-6, replacing the sneak key with the sprint key
Expected results
The player's movement would be consistent between sneaking and sprinting according to the following:
- Prior to holding key: normal walking
- While holding key: modified movement
- After releasing key: normal walking
Actual results
Sneaking follows the above criteria just fine:
- Prior to holding key: normal walking
- While holding key: sneaking
- After releasing key: normal walking
However, sprinting deviates from these requirements at the end:
- Prior to holding key: normal walking
- While holding key: sprinting
- After releasing key: sprinting
How to fix
As the current sprinting behaviour is effectively normalized at this point, it may be advisable to implement it as a new, third toggleable behaviour type (perhaps named "Persist"?) rather than forcing it to match sneaking. Sprinting would be this new third type by default, whereas sneaking would remain the traditional "Hold" (but could be changed to "Persist" by a player if desired).