mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
FEAT: Tweaks in options
This commit is contained in:
@@ -182,7 +182,7 @@ void LocalPlayer::aiStep() {
|
||||
// Sprint: detect W double-tap
|
||||
{
|
||||
bool forwardHeld = (input->ya > 0);
|
||||
if (forwardHeld && !prevForwardHeld) {
|
||||
if (forwardHeld && !prevForwardHeld && minecraft->options.useSprinting) {
|
||||
// leading edge of W press
|
||||
if (sprintDoubleTapTimer > 0)
|
||||
sprinting = true;
|
||||
@@ -271,7 +271,7 @@ void LocalPlayer::move(float xa, float ya, float za) {
|
||||
|
||||
float newX = x, newZ = z;
|
||||
|
||||
if (autoJumpTime <= 0 && autoJumpEnabled)
|
||||
if (autoJumpTime <= 0 && minecraft->options.autoJump)
|
||||
{
|
||||
// auto-jump when crossing the middle of a tile, and the tile in the front is blocked
|
||||
bool jump = false;
|
||||
|
||||
Reference in New Issue
Block a user