Skip to content

Commit bc66f46

Browse files
committedMay 19, 2013
Dont teleport back if holding sneak when detaching/turn freemove off
1 parent cc92e45 commit bc66f46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/localplayer.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void LocalPlayer::move(f32 dtime, ClientEnvironment *env, f32 pos_max_d,
7373
if(isAttached)
7474
{
7575
setPosition(overridePosition);
76+
m_sneak_node_exists = false;
7677
return;
7778
}
7879

@@ -85,6 +86,7 @@ void LocalPlayer::move(f32 dtime, ClientEnvironment *env, f32 pos_max_d,
8586
{
8687
position += m_speed * dtime;
8788
setPosition(position);
89+
m_sneak_node_exists = false;
8890
return;
8991
}
9092

0 commit comments

Comments
 (0)
Please sign in to comment.