Skip to content
Snippets Groups Projects
Commit bc66f463 authored by PilzAdam's avatar PilzAdam
Browse files

Dont teleport back if holding sneak when detaching/turn freemove off

parent cc92e45b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment