From bc66f4632372e62be53f3b61cd5cc4a82ee44741 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 19 May 2013 20:56:25 +0200 Subject: [PATCH] Dont teleport back if holding sneak when detaching/turn freemove off --- src/localplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 13117d88..f8dfca05 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -73,6 +73,7 @@ void LocalPlayer::move(f32 dtime, ClientEnvironment *env, f32 pos_max_d, if(isAttached) { setPosition(overridePosition); + m_sneak_node_exists = false; return; } @@ -85,6 +86,7 @@ void LocalPlayer::move(f32 dtime, ClientEnvironment *env, f32 pos_max_d, { position += m_speed * dtime; setPosition(position); + m_sneak_node_exists = false; return; } -- 2.30.2